Skip to content
This repository has been archived by the owner on Jan 1, 2023. It is now read-only.

Commit

Permalink
Adding const iterator to MCInst. http://reviews.llvm.org/D6359
Browse files Browse the repository at this point in the history
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@222661 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
Colin LeMahieu committed Nov 24, 2014
1 parent e9e9ebb commit ba76011
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion include/llvm/MC/MCInst.h
Original file line number Diff line number Diff line change
Expand Up @@ -172,8 +172,11 @@ class MCInst {
size_t size() { return Operands.size(); }

typedef SmallVectorImpl<MCOperand>::iterator iterator;
typedef SmallVectorImpl<MCOperand>::const_iterator const_iterator;
iterator begin() { return Operands.begin(); }
iterator end() { return Operands.end(); }
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);
}
Expand Down

0 comments on commit ba76011

Please sign in to comment.