aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2008-06-19 17:15:57 +0000
committerOwen Anderson <resistor@mac.com>2008-06-19 17:15:57 +0000
commit5678d6e8d3602acc588029911c1c95f15bddd378 (patch)
treea78c9904a6c12bcbdc991049883a9537c23852cb
parente6807551cb78f2813c64d79eb03d50aa99951eeb (diff)
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
-rw-r--r--include/llvm/Instructions.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/include/llvm/Instructions.h b/include/llvm/Instructions.h
index b92e9010b9..36c0a59281 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);