Remove the need to cache the subtarget in the PowerPC TargetRegisterInfo
[oota-llvm.git] / lib / Target / PowerPC / PPCInstrInfo.cpp
index fe9474a5de0033f44c706259a876d9eca56e864a..0a6be1ad74772817b6cc6924e798f4a5bd00e989 100644 (file)
@@ -61,7 +61,7 @@ void PPCInstrInfo::anchor() {}
 
 PPCInstrInfo::PPCInstrInfo(PPCSubtarget &STI)
     : PPCGenInstrInfo(PPC::ADJCALLSTACKDOWN, PPC::ADJCALLSTACKUP),
-      Subtarget(STI), RI(STI) {}
+      Subtarget(STI), RI(STI.getTargetMachine()) {}
 
 /// CreateTargetHazardRecognizer - Return the hazard recognizer to use for
 /// this target when scheduling the DAG.