[llvm-commits] CVS: llvm/include/llvm/Target/TargetData.h
Owen Anderson
resistor at mac.com
Fri May 12 00:01:57 PDT 2006
Changes in directory llvm/include/llvm/Target:
TargetData.h updated: 1.36 -> 1.37
---
Log message:
Add a method to generate a string representation from a TargetData.
This continues the work on PR 761: http://llvm.cs.uiuc.edu/PR761 .
---
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.36 llvm/include/llvm/Target/TargetData.h:1.37
--- llvm/include/llvm/Target/TargetData.h:1.36 Fri May 12 00:49:47 2006
+++ llvm/include/llvm/Target/TargetData.h Fri May 12 02:01:44 2006
@@ -94,6 +94,11 @@
unsigned char getPointerSize() const { return PointerSize; }
unsigned char getPointerSizeInBits() const { return 8*PointerSize; }
+ /// getStringRepresentation - Return the string representation of the
+ /// TargetData. This representation is in the same format accepted by the
+ /// string constructor above.
+ std::string getStringRepresentation() const;
+
/// getTypeSize - Return the number of bytes necessary to hold the specified
/// type.
///
More information about the llvm-commits
mailing list