1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 11:13:28 +01:00

Add an idx_iterator to the insertvalue and extractvalue instructions.

llvm-svn: 52493
This commit is contained in:
Owen Anderson 2008-06-19 17:15:57 +00:00
parent 42e4ecff62
commit 5eeafbc3f7

View File

@ -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);