Use the same call off of the TargetMachine rather than the subtarget.
[oota-llvm.git] / lib / Target / Mips / MipsAsmPrinter.cpp
index bcb14a456452b2b2f54ca7da84fb54bd048a3417..53b79eeacea69f7c0e60b8bc2471dd215f1643fc 100644 (file)
@@ -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();
   //