From 943a34f68bb06a7f460559fc2d7bdcdb39637116 Mon Sep 17 00:00:00 2001 From: Eric Christopher Date: Tue, 6 Jan 2015 01:12:40 +0000 Subject: [PATCH] Use the same call off of the TargetMachine rather than the subtarget. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@225232 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/Mips/MipsAsmPrinter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Target/Mips/MipsAsmPrinter.cpp b/lib/Target/Mips/MipsAsmPrinter.cpp index bcb14a45645..53b79eeacea 100644 --- a/lib/Target/Mips/MipsAsmPrinter.cpp +++ b/lib/Target/Mips/MipsAsmPrinter.cpp @@ -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(); //