Only access TLOF via the TargetMachine, not TargetLowering.
[oota-llvm.git] / lib / LTO / LTOModule.cpp
index 038555f953d961c196e456ce9a1eb52fa740f642..0d07791b381ba5342a2083185e1b171869e4265b 100644 (file)
@@ -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())