diff options
author | Chris Lattner <sabre@nondot.org> | 2006-06-16 18:11:26 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2006-06-16 18:11:26 +0000 |
commit | 7f043b52ff90300c4b2595a960de92538007b716 (patch) | |
tree | 62c47a93a34adec5e2afc731ed7642f9eb902983 /llvm/lib/Target/TargetData.cpp | |
parent | e796266d587b7f02ef710172935fefee79914c12 (diff) | |
download | bcm5719-llvm-7f043b52ff90300c4b2595a960de92538007b716.tar.gz bcm5719-llvm-7f043b52ff90300c4b2595a960de92538007b716.zip |
Remove ctor with each piece specifyable (which causes overload ambiguities),
add a new init method.
llvm-svn: 28828
Diffstat (limited to 'llvm/lib/Target/TargetData.cpp')
-rw-r--r-- | llvm/lib/Target/TargetData.cpp | 33 |
1 files changed, 1 insertions, 32 deletions
diff --git a/llvm/lib/Target/TargetData.cpp b/llvm/lib/Target/TargetData.cpp index f7b7b4c3e5b..d2b6a54ecd3 100644 --- a/llvm/lib/Target/TargetData.cpp +++ b/llvm/lib/Target/TargetData.cpp @@ -95,38 +95,7 @@ unsigned StructLayout::getElementContainingOffset(uint64_t Offset) const { // 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; |