[llvm] r225232 - Use the same call off of the TargetMachine rather than the subtarget.

Eric Christopher echristo at gmail.com
Mon Jan 5 17:12:40 PST 2015


Author: echristo
Date: Mon Jan  5 19:12:40 2015
New Revision: 225232

URL: http://llvm.org/viewvc/llvm-project?rev=225232&view=rev
Log:
Use the same call off of the TargetMachine rather than the subtarget.

Modified:
    llvm/trunk/lib/Target/Mips/MipsAsmPrinter.cpp

Modified: llvm/trunk/lib/Target/Mips/MipsAsmPrinter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/Mips/MipsAsmPrinter.cpp?rev=225232&r1=225231&r2=225232&view=diff
==============================================================================
--- llvm/trunk/lib/Target/Mips/MipsAsmPrinter.cpp (original)
+++ llvm/trunk/lib/Target/Mips/MipsAsmPrinter.cpp Mon Jan  5 19:12:40 2015
@@ -968,7 +968,7 @@ void MipsAsmPrinter::EmitFPCallStub(
   // called otherwise. when the full stub generation is moved here
   // we need to deal with pic.
   //
-  if (Subtarget->getRelocationModel() == Reloc::PIC_)
+  if (TM.getRelocationModel() == Reloc::PIC_)
     llvm_unreachable("should not be here if we are compiling pic");
   TS.emitDirectiveSetReorder();
   //





More information about the llvm-commits mailing list