Remove getAllocatedRegNum(). Use getReg() instead.
[oota-llvm.git] / lib / Target / SparcV9 / SparcV9CodeEmitter.cpp
index 753f5d30f3d7fe5eeead3f0bb5d3b6bdd9c3d9d5..0db45e3e833a814d5b31155b572da2a494efd1b4 100644 (file)
@@ -661,7 +661,7 @@ int64_t SparcV9CodeEmitter::getMachineOpValue(MachineInstr &MI,
     // This is necessary because the Sparc backend doesn't actually lay out
     // registers in the real fashion -- it skips those that it chooses not to
     // allocate, i.e. those that are the FP, SP, etc.
-    unsigned fakeReg = MO.getAllocatedRegNum();
+    unsigned fakeReg = MO.getReg();
     unsigned realRegByClass = getRealRegNum(fakeReg, MI);
     DEBUG(std::cerr << MO << ": Reg[" << std::dec << fakeReg << "] => "
                     << realRegByClass << " (LLC: "