Fix GCC warning:
[oota-llvm.git] / lib / CodeGen / VirtRegMap.h
index 0bf52be847f629a6819a5cead16b970a078015de..2fe27cea31fa312a0aa9c00d4e021fc1c669ff99 100644 (file)
@@ -156,10 +156,13 @@ namespace llvm {
     }
 
     MachineFunction &getMachineFunction() const {
-      assert(MF && "getMachineFunction called before runOnMAchineFunction");
+      assert(MF && "getMachineFunction called before runOnMachineFunction");
       return *MF;
     }
 
+    MachineRegisterInfo &getRegInfo() const { return *MRI; }
+    const TargetRegisterInfo &getTargetRegInfo() const { return *TRI; }
+
     void grow();
 
     /// @brief returns true if the specified virtual register is