aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-03-12 20:47:28 +0000
committerChris Lattner <sabre@nondot.org>2010-03-12 20:47:28 +0000
commitb87c305fa77650ee581d4a8c65a0757f88002441 (patch)
treef226d1a01ab356fc4872fb40d069d8e1d32929a1 /tools
parent3f185a72cd558ad8836ebd6f779f032c97835c03 (diff)
downloadexternal_llvm-b87c305fa77650ee581d4a8c65a0757f88002441.zip
external_llvm-b87c305fa77650ee581d4a8c65a0757f88002441.tar.gz
external_llvm-b87c305fa77650ee581d4a8c65a0757f88002441.tar.bz2
give Mangler access to TargetData.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@98378 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools')
-rw-r--r--tools/lto/LTOCodeGenerator.cpp2
-rw-r--r--tools/lto/LTOModule.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/tools/lto/LTOCodeGenerator.cpp b/tools/lto/LTOCodeGenerator.cpp
index acce071..15753d3 100644
--- a/tools/lto/LTOCodeGenerator.cpp
+++ b/tools/lto/LTOCodeGenerator.cpp
@@ -322,7 +322,7 @@ void LTOCodeGenerator::applyScopeRestrictions() {
// mark which symbols can not be internalized
if (!_mustPreserveSymbols.empty()) {
MCContext Context(*_target->getMCAsmInfo());
- Mangler mangler(Context);
+ Mangler mangler(Context, *_target->getTargetData());
std::vector<const char*> mustPreserveList;
for (Module::iterator f = mergedModule->begin(),
e = mergedModule->end(); f != e; ++f) {
diff --git a/tools/lto/LTOModule.cpp b/tools/lto/LTOModule.cpp
index 4617d93..08576ab 100644
--- a/tools/lto/LTOModule.cpp
+++ b/tools/lto/LTOModule.cpp
@@ -439,7 +439,7 @@ void LTOModule::lazyParseSymbols()
// Use mangler to add GlobalPrefix to names to match linker names.
MCContext Context(*_target->getMCAsmInfo());
- Mangler mangler(Context);
+ Mangler mangler(Context, *_target->getTargetData());
// add functions
for (Module::iterator f = _module->begin(); f != _module->end(); ++f) {