[llvm-commits] CVS: llvm/include/llvm/Target/TargetData.h

Chris Lattner sabre at nondot.org
Sat Feb 10 11:33:35 PST 2007



Changes in directory llvm/include/llvm/Target:

TargetData.h updated: 1.48 -> 1.49
---
Log message:

Change TargetData::getIndexedOffset interface to not require indices
in a vector.


---
Diffs of the changes:  (+6 -1)

 TargetData.h |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletion(-)


Index: llvm/include/llvm/Target/TargetData.h
diff -u llvm/include/llvm/Target/TargetData.h:1.48 llvm/include/llvm/Target/TargetData.h:1.49
--- llvm/include/llvm/Target/TargetData.h:1.48	Wed Jan 24 01:03:39 2007
+++ llvm/include/llvm/Target/TargetData.h	Sat Feb 10 13:33:15 2007
@@ -247,7 +247,12 @@
   /// specified indices.  This is used to implement getelementptr.
   ///
   uint64_t getIndexedOffset(const Type *Ty,
-                            const std::vector<Value*> &Indices) const;
+                            Value* const* Indices, unsigned NumIndices) const;
+  
+  uint64_t getIndexedOffset(const Type *Ty,
+                            const std::vector<Value*> &Indices) const {
+    return getIndexedOffset(Ty, &Indices[0], Indices.size());
+  }
 
   /// getStructLayout - Return a StructLayout object, indicating the alignment
   /// of the struct, its size, and the offsets of its fields.  Note that this






More information about the llvm-commits mailing list