From 5eeafbc3f7cb5dd37cc674270f1e78e880218ec8 Mon Sep 17 00:00:00 2001 From: Owen Anderson Date: Thu, 19 Jun 2008 17:15:57 +0000 Subject: [PATCH] Add an idx_iterator to the insertvalue and extractvalue instructions. llvm-svn: 52493 --- include/llvm/Instructions.h | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/include/llvm/Instructions.h b/include/llvm/Instructions.h index b92e9010b9d..36c0a592812 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(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);