[llvm-commits] CVS: llvm/lib/Target/TargetData.cpp
Chris Lattner
lattner at cs.uiuc.edu
Fri Jun 16 11:11:38 PDT 2006
Changes in directory llvm/lib/Target:
TargetData.cpp updated: 1.68 -> 1.69
---
Log message:
Remove ctor with each piece specifyable (which causes overload ambiguities),
add a new init method.
---
Diffs of the changes: (+1 -32)
TargetData.cpp | 33 +--------------------------------
1 files changed, 1 insertion(+), 32 deletions(-)
Index: llvm/lib/Target/TargetData.cpp
diff -u llvm/lib/Target/TargetData.cpp:1.68 llvm/lib/Target/TargetData.cpp:1.69
--- llvm/lib/Target/TargetData.cpp:1.68 Sat May 20 18:28:54 2006
+++ llvm/lib/Target/TargetData.cpp Fri Jun 16 13:11:26 2006
@@ -95,38 +95,7 @@
// TargetData Class Implementation
//===----------------------------------------------------------------------===//
-TargetData::TargetData(const std::string &TargetName,
- bool isLittleEndian, unsigned char PtrSize,
- unsigned char PtrAl, unsigned char DoubleAl,
- unsigned char FloatAl, unsigned char LongAl,
- unsigned char IntAl, unsigned char ShortAl,
- unsigned char ByteAl, unsigned char BoolAl) {
-
- // If this assert triggers, a pass "required" TargetData information, but the
- // top level tool did not provide one for it. We do not want to default
- // construct, or else we might end up using a bad endianness or pointer size!
- //
- assert(!TargetName.empty() &&
- "ERROR: Tool did not specify a target data to use!");
-
- LittleEndian = isLittleEndian;
- PointerSize = PtrSize;
- PointerAlignment = PtrAl;
- DoubleAlignment = DoubleAl;
- FloatAlignment = FloatAl;
- LongAlignment = LongAl;
- IntAlignment = IntAl;
- ShortAlignment = ShortAl;
- ByteAlignment = ByteAl;
- BoolAlignment = BoolAl;
-}
-
-TargetData::TargetData(const std::string &TargetName,
- const std::string &TargetDescription) {
- assert(!TargetName.empty() &&
- "ERROR: Tool did not specify a target data to use!");
-
-
+void TargetData::init(const std::string &TargetDescription) {
std::string temp = TargetDescription;
LittleEndian = false;
More information about the llvm-commits
mailing list