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
This commit is contained in:
Eric Christopher
2015-02-03 07:22:52 +00:00
parent 482e090944
commit b3f0a42d00
7 changed files with 20 additions and 25 deletions
+1 -1
View File
@@ -129,7 +129,7 @@ unsigned AsmPrinter::getFunctionNumber() const {
}
const TargetLoweringObjectFile &AsmPrinter::getObjFileLowering() const {
return TM.getSubtargetImpl()->getTargetLowering()->getObjFileLowering();
return *TM.getObjFileLowering();
}
/// getDataLayout - Return information about data layout.