Adding const iterator to MCInst. http://reviews.llvm.org/D6359

llvm-svn: 222661
This commit is contained in:
Colin LeMahieu 2014-11-24 16:50:40 +00:00
parent bb7d6f5514
commit 06bc0caa1f
1 changed files with 4 additions and 1 deletions

View File

@ -172,8 +172,11 @@ public:
size_t size() { return Operands.size(); }
typedef SmallVectorImpl<MCOperand>::iterator iterator;
typedef SmallVectorImpl<MCOperand>::const_iterator const_iterator;
iterator begin() { return Operands.begin(); }
const_iterator begin() const { return Operands.begin(); }
iterator end() { return Operands.end(); }
const_iterator end() const { return Operands.end(); }
iterator insert(iterator I, const MCOperand &Op) {
return Operands.insert(I, Op);
}