Add definitions of two subclasses of MipsRegisterInfo, Mips16RegisterInfo and
[oota-llvm.git] / lib / Target / Mips / Mips16InstrInfo.cpp
index 637327d8a0a2985581b7f6d4542ff4f5aabd920c..59926b5b54c1034999a937f4f634b6405a7941fd 100644 (file)
 using namespace llvm;
 
 Mips16InstrInfo::Mips16InstrInfo(MipsTargetMachine &tm)
-  : MipsInstrInfo(tm, /* FIXME: set mips16 unconditional br */ 0) {}
+  : MipsInstrInfo(tm, /* FIXME: set mips16 unconditional br */ 0),
+    RI(*tm.getSubtargetImpl(), *this) {}
+
+const MipsRegisterInfo &Mips16InstrInfo::getRegisterInfo() const {
+  return RI;
+}
 
 /// isLoadFromStackSlot - If the specified machine instruction is a direct
 /// load from a stack slot, return the virtual or physical register number of