Add a method to generate a string representation from a TargetData.

This continues the work on PR 761.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28239 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Owen Anderson
2006-05-12 07:01:44 +00:00
parent 07000c6f01
commit 2577c22131
2 changed files with 26 additions and 0 deletions

View File

@@ -94,6 +94,11 @@ public:
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.
///