[llvm-commits] [llvm] r52493 - /llvm/trunk/include/llvm/Instructions.h

Owen Anderson resistor at mac.com
Thu Jun 19 10:15:58 PDT 2008


Author: resistor
Date: Thu Jun 19 12:15:57 2008
New Revision: 52493

URL: http://llvm.org/viewvc/llvm-project?rev=52493&view=rev
Log:
Add an idx_iterator to the insertvalue and extractvalue instructions.

Modified:
    llvm/trunk/include/llvm/Instructions.h

Modified: llvm/trunk/include/llvm/Instructions.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Instructions.h?rev=52493&r1=52492&r2=52493&view=diff

==============================================================================
--- llvm/trunk/include/llvm/Instructions.h (original)
+++ llvm/trunk/include/llvm/Instructions.h Thu Jun 19 12:15:57 2008
@@ -1586,8 +1586,9 @@
   }  
   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 @@
     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);





More information about the llvm-commits mailing list