[MC] Allowing operands to be erased from MCInst.

llvm-svn: 239079
This commit is contained in:
Colin LeMahieu 2015-06-04 19:49:52 +00:00
parent 9f336636fe
commit 31d9c47540
1 changed files with 3 additions and 3 deletions
llvm/include/llvm/MC

View 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(); }