Remove the need to cache the subtarget in the Sparc TargetRegisterInfo
[oota-llvm.git] / lib / Target / Sparc / SparcInstrInfo.cpp
index 8b2e6bc5f32fbc177cf84e273e9b50df0bf1f8f8..4b70f1619b13132f4bee1e8403c7fd83eb0db73f 100644 (file)
@@ -33,9 +33,8 @@ using namespace llvm;
 void SparcInstrInfo::anchor() {}
 
 SparcInstrInfo::SparcInstrInfo(SparcSubtarget &ST)
-  : SparcGenInstrInfo(SP::ADJCALLSTACKDOWN, SP::ADJCALLSTACKUP),
-    RI(ST), Subtarget(ST) {
-}
+    : SparcGenInstrInfo(SP::ADJCALLSTACKDOWN, SP::ADJCALLSTACKUP), RI(),
+      Subtarget(ST) {}
 
 /// isLoadFromStackSlot - If the specified machine instruction is a direct
 /// load from a stack slot, return the virtual or physical register number of