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)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@225232 91177308-0d34-0410-b5e6-96231b3b80d8

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();
   //