From 08a382531c8e282bd2e346b896b5fe78ba9d11d2 Mon Sep 17 00:00:00 2001 From: Colin LeMahieu Date: Thu, 4 Jun 2015 19:49:52 +0000 Subject: [PATCH] [MC] Allowing operands to be erased from MCInst. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@239079 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/MC/MCInst.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/llvm/MC/MCInst.h b/include/llvm/MC/MCInst.h index ea85b9a11c8..4688b5f2b6e 100644 --- a/include/llvm/MC/MCInst.h +++ b/include/llvm/MC/MCInst.h @@ -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::iterator iterator; typedef SmallVectorImpl::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(); }