Use the same call off of the TargetMachine rather than the subtarget.
authorEric Christopher <echristo@gmail.com>
Tue, 6 Jan 2015 01:12:40 +0000 (01:12 +0000)
committerEric Christopher <echristo@gmail.com>
Tue, 6 Jan 2015 01:12:40 +0000 (01:12 +0000)
llvm-svn: 225232

llvm/lib/Target/Mips/MipsAsmPrinter.cpp

index bcb14a4..53b79ee 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();
   //