modified printing of debug messages
llvm-svn: 593
diff --git a/llvm/lib/Target/Sparc/SparcInternals.h b/llvm/lib/Target/Sparc/SparcInternals.h
index 43f67d3..87e4cd0 100644
--- a/llvm/lib/Target/Sparc/SparcInternals.h
+++ b/llvm/lib/Target/Sparc/SparcInternals.h
@@ -945,22 +945,12 @@
return res;
}
-
-#if 0
- unsigned getRCIDOfMachineOp (const MachineOperand & Op) const {
-
- unsigned Type = getRegClassIDOfValue( Op.getVRegValue() );
-
- if( Op.getOperandType() == MachineOperand::MO_CCRegister )
- return Type + 2; // because of the order of CC classes
- else return Type;
+ // returns the register tha contains always zero
+ inline unsigned getZeroReg() {
+ return SparcIntRegOrder::g0;
}
-#endif
-
-
-
void colorArgs(const Method *const Meth, LiveRangeInfo& LRI) const;
static void printReg(const LiveRange *const LR) ;