Fundamentally change the MipsSubtarget replacement machinery:
[oota-llvm.git] / lib / Target / Mips / MipsModuleISelDAGToDAG.cpp
index 03c76eaf1996ebb77c9e9ae76923cc1ffc3d5e37..b011e8fcd8b76f21ef423d6ca61ec53dc4d9233b 100644 (file)
@@ -20,7 +20,7 @@ namespace llvm {
 
 bool MipsModuleDAGToDAGISel::runOnMachineFunction(MachineFunction &MF) {
   DEBUG(errs() << "In MipsModuleDAGToDAGISel::runMachineFunction\n");
-  const_cast<MipsSubtarget&>(Subtarget).resetSubtarget(&MF);
+  TM.resetSubtarget(&MF);
   return false;
 }