diff options
author | Owen Anderson <resistor@mac.com> | 2008-06-19 17:15:57 +0000 |
---|---|---|
committer | Owen Anderson <resistor@mac.com> | 2008-06-19 17:15:57 +0000 |
commit | 42cdbe28524fd792dabd6d55ec95d975f417ca88 (patch) | |
tree | a78c9904a6c12bcbdc991049883a9537c23852cb /include/llvm/Instructions.h | |
parent | c52d876ae239e01a50cbe70ba4f01e9f522a462b (diff) | |
download | external_llvm-42cdbe28524fd792dabd6d55ec95d975f417ca88.zip external_llvm-42cdbe28524fd792dabd6d55ec95d975f417ca88.tar.gz external_llvm-42cdbe28524fd792dabd6d55ec95d975f417ca88.tar.bz2 |
Add an idx_iterator to the insertvalue and extractvalue instructions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52493 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Instructions.h')
-rw-r--r-- | include/llvm/Instructions.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/include/llvm/Instructions.h b/include/llvm/Instructions.h index b92e901..36c0a59 100644 --- a/include/llvm/Instructions.h +++ b/include/llvm/Instructions.h @@ -1586,8 +1586,9 @@ public: } static const Type *getIndexedType(const Type *Ptr, unsigned Idx); - inline const unsigned *idx_begin() const { return Indices.begin(); } - inline const unsigned *idx_end() const { return Indices.end(); } + typedef const unsigned* idx_iterator; + inline idx_iterator idx_begin() const { return Indices.begin(); } + inline idx_iterator idx_end() const { return Indices.end(); } Value *getAggregateOperand() { return getOperand(0); @@ -1747,8 +1748,9 @@ public: return reinterpret_cast<const PointerType*>(Instruction::getType()); } - inline const unsigned *idx_begin() const { return Indices.begin(); } - inline const unsigned *idx_end() const { return Indices.end(); } + typedef const unsigned* idx_iterator; + inline idx_iterator idx_begin() const { return Indices.begin(); } + inline idx_iterator idx_end() const { return Indices.end(); } Value *getAggregateOperand() { return getOperand(0); |