diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2013-10-29 17:28:26 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2013-10-29 17:28:26 +0000 |
commit | 93cf0939f95b3d580d9c05375a7c84164e1ba72e (patch) | |
tree | a96b38da3a97d31cc718f361f15ab79fe2e12270 /lib/LTO | |
parent | faf4ed2da85b10eb0b6c506c4a642a2a9395786f (diff) | |
download | external_llvm-93cf0939f95b3d580d9c05375a7c84164e1ba72e.zip external_llvm-93cf0939f95b3d580d9c05375a7c84164e1ba72e.tar.gz external_llvm-93cf0939f95b3d580d9c05375a7c84164e1ba72e.tar.bz2 |
Move getSymbol to TargetLoweringObjectFile.
This allows constructing a Mangler with just a TargetMachine.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@193630 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/LTO')
-rw-r--r-- | lib/LTO/LTOCodeGenerator.cpp | 4 | ||||
-rw-r--r-- | lib/LTO/LTOModule.cpp | 2 |
2 files changed, 2 insertions, 4 deletions
diff --git a/lib/LTO/LTOCodeGenerator.cpp b/lib/LTO/LTOCodeGenerator.cpp index 88f6061..c55eccb 100644 --- a/lib/LTO/LTOCodeGenerator.cpp +++ b/lib/LTO/LTOCodeGenerator.cpp @@ -350,9 +350,7 @@ void LTOCodeGenerator::applyScopeRestrictions() { passes.add(createVerifierPass()); // mark which symbols can not be internalized - MCContext MContext(TargetMach->getMCAsmInfo(), TargetMach->getRegisterInfo(), - NULL); - Mangler Mangler(MContext, TargetMach); + Mangler Mangler(TargetMach); std::vector<const char*> MustPreserveList; std::vector<const char*> DSOList; SmallPtrSet<GlobalValue*, 8> AsmUsed; diff --git a/lib/LTO/LTOModule.cpp b/lib/LTO/LTOModule.cpp index 98c5416..db9b9c9 100644 --- a/lib/LTO/LTOModule.cpp +++ b/lib/LTO/LTOModule.cpp @@ -43,7 +43,7 @@ using namespace llvm; LTOModule::LTOModule(llvm::Module *m, llvm::TargetMachine *t) : _module(m), _target(t), _context(_target->getMCAsmInfo(), _target->getRegisterInfo(), NULL), - _mangler(_context, t) {} + _mangler(t) {} /// isBitcodeFile - Returns 'true' if the file (or memory contents) is LLVM /// bitcode. |