[llvm-commits] CVS: llvm/include/llvm/Target/TargetData.h
Owen Anderson
resistor at mac.com
Thu May 11 22:50:00 PDT 2006
Changes in directory llvm/include/llvm/Target:
TargetData.h updated: 1.35 -> 1.36
---
Log message:
Add a new constructor to TargetData that builds a TargetData from its
string representation.
This is part of PR 761: http://llvm.cs.uiuc.edu/PR761 .
---
Diffs of the changes: (+7 -0)
TargetData.h | 7 +++++++
1 files changed, 7 insertions(+)
Index: llvm/include/llvm/Target/TargetData.h
diff -u llvm/include/llvm/Target/TargetData.h:1.35 llvm/include/llvm/Target/TargetData.h:1.36
--- llvm/include/llvm/Target/TargetData.h:1.35 Thu May 4 16:17:35 2006
+++ llvm/include/llvm/Target/TargetData.h Fri May 12 00:49:47 2006
@@ -53,6 +53,13 @@
unsigned char IntAl = 4, unsigned char ShortAl = 2,
unsigned char ByteAl = 1, unsigned char BoolAl = 1);
+ /// Constructs a TargetData from a string of the following format:
+ /// "E-p:64:64-d:64:64-f:32:32-l:64:64-i:32:32-s:16:16-b:8:8-B:8:8"
+ /// The above string is considered the default, and any values not specified
+ /// in the string will be assumed to be as above.
+ TargetData(const std::string &TargetName,
+ const std::string &TargetDescription);
+
// Copy constructor
TargetData (const TargetData &TD) :
ImmutablePass(),
More information about the llvm-commits
mailing list