diff options
author | Chris Lattner <sabre@nondot.org> | 2010-03-12 20:47:28 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-03-12 20:47:28 +0000 |
commit | b87c305fa77650ee581d4a8c65a0757f88002441 (patch) | |
tree | f226d1a01ab356fc4872fb40d069d8e1d32929a1 /tools | |
parent | 3f185a72cd558ad8836ebd6f779f032c97835c03 (diff) | |
download | external_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.cpp | 2 | ||||
-rw-r--r-- | tools/lto/LTOModule.cpp | 2 |
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) { |