[MC] Allowing operands to be erased from MCInst.
authorColin LeMahieu <colinl@codeaurora.org>
Thu, 4 Jun 2015 19:49:52 +0000 (19:49 +0000)
committerColin LeMahieu <colinl@codeaurora.org>
Thu, 4 Jun 2015 19:49:52 +0000 (19:49 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@239079 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/MC/MCInst.h

index ea85b9a11c87455351e340837848422604ac07ac..4688b5f2b6e92e68e74ff4c74c79ed99000bbfba 100644 (file)
@@ -167,11 +167,11 @@ public:
 
   void addOperand(const MCOperand &Op) { Operands.push_back(Op); }
 
-  void clear() { Operands.clear(); }
-  size_t size() const { return Operands.size(); }
-
   typedef SmallVectorImpl<MCOperand>::iterator iterator;
   typedef SmallVectorImpl<MCOperand>::const_iterator const_iterator;
+  void clear() { Operands.clear(); }
+  void erase(iterator I) { Operands.erase(I); }
+  size_t size() const { return Operands.size(); }
   iterator begin() { return Operands.begin(); }
   const_iterator begin() const { return Operands.begin(); }
   iterator end() { return Operands.end(); }