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

Chris Lattner lattner at cs.uiuc.edu
Sun Mar 13 11:04:20 PST 2005



Changes in directory llvm/include/llvm/Target:

TargetData.h updated: 1.28 -> 1.29
---
Log message:

add a helper method


---
Diffs of the changes:  (+5 -0)

 TargetData.h |    5 +++++
 1 files changed, 5 insertions(+)


Index: llvm/include/llvm/Target/TargetData.h
diff -u llvm/include/llvm/Target/TargetData.h:1.28 llvm/include/llvm/Target/TargetData.h:1.29
--- llvm/include/llvm/Target/TargetData.h:1.28	Wed Oct 27 11:14:51 2004
+++ llvm/include/llvm/Target/TargetData.h	Sun Mar 13 13:04:04 2005
@@ -119,6 +119,11 @@
   std::vector<uint64_t> MemberOffsets;
   uint64_t StructSize;
   unsigned StructAlignment;
+
+  /// getElementContainingOffset - Given a valid offset into the structure,
+  /// return the structure index that contains it.
+  unsigned getElementContainingOffset(uint64_t Offset) const;
+
 private:
   friend class TargetData;   // Only TargetData can create this class
   StructLayout(const StructType *ST, const TargetData &TD);






More information about the llvm-commits mailing list