Get the cached subtarget off the MachineFunction rather than
[oota-llvm.git] / lib / Target / Mips / MipsAsmPrinter.cpp
index d1d24e03e92027eaff02d2c6ffce70696062a594..30350a93e3ab9392cdd1c799653d4c76b5040952 100644 (file)
@@ -59,7 +59,7 @@ MipsTargetStreamer &MipsAsmPrinter::getTargetStreamer() const {
 }
 
 bool MipsAsmPrinter::runOnMachineFunction(MachineFunction &MF) {
-  Subtarget = &TM.getSubtarget<MipsSubtarget>();
+  Subtarget = &MF.getSubtarget<MipsSubtarget>();
 
   // Initialize TargetLoweringObjectFile.
   const_cast<TargetLoweringObjectFile &>(getObjFileLowering())