diff options
author | Eric Christopher <echristo@gmail.com> | 2015-02-03 07:22:52 +0000 |
---|---|---|
committer | Eric Christopher <echristo@gmail.com> | 2015-02-03 07:22:52 +0000 |
commit | b3f0a42d003cd6fc93dd4786ca580eaa48bb5fad (patch) | |
tree | aafb4506fe1e6a383925122a7e6a668df3d2b1bc /lib/LTO/LTOModule.cpp | |
parent | 482e09094475653048ad15f32755d7778898b289 (diff) |
Only access TLOF via the TargetMachine, not TargetLowering.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@227949 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/LTO/LTOModule.cpp')
-rw-r--r-- | lib/LTO/LTOModule.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/LTO/LTOModule.cpp b/lib/LTO/LTOModule.cpp index 038555f953d..0d07791b381 100644 --- a/lib/LTO/LTOModule.cpp +++ b/lib/LTO/LTOModule.cpp @@ -649,10 +649,8 @@ void LTOModule::parseMetadata() { // here. StringRef Op = _linkeropt_strings.insert(MDOption->getString()).first->first(); - StringRef DepLibName = _target->getSubtargetImpl() - ->getTargetLowering() - ->getObjFileLowering() - .getDepLibFromLinkerOpt(Op); + StringRef DepLibName = + _target->getObjFileLowering()->getDepLibFromLinkerOpt(Op); if (!DepLibName.empty()) _deplibs.push_back(DepLibName.data()); else if (!Op.empty()) |