diff options
author | Chris Lattner <sabre@nondot.org> | 2006-06-16 18:22:52 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2006-06-16 18:22:52 +0000 |
commit | 1790d44d0dbe3412e012be5e43b89e67064bdb86 (patch) | |
tree | c9ece142fcebb0c13f260d8fa15d4e5b840d91af /lib/Target/TargetData.cpp | |
parent | c91dc678e937ca5b3e3d85e9c9f76ade7c957f29 (diff) |
Don't pass target name into TargetData anymore, it is never used or needed.
Remove explicit casts to std::string now that there is no overload resolution
issues in the TargetData ctors.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28830 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/TargetData.cpp')
-rw-r--r-- | lib/Target/TargetData.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/TargetData.cpp b/lib/Target/TargetData.cpp index d2b6a54ecd..cb602a6352 100644 --- a/lib/Target/TargetData.cpp +++ b/lib/Target/TargetData.cpp @@ -152,7 +152,7 @@ void TargetData::init(const std::string &TargetDescription) { } } -TargetData::TargetData(const std::string &ToolName, const Module *M) { +TargetData::TargetData(const Module *M) { LittleEndian = M->getEndianness() != Module::BigEndian; PointerSize = M->getPointerSize() != Module::Pointer64 ? 4 : 8; PointerAlignment = PointerSize; |