Print <dead> def operands.

llvm-svn: 34343
This commit is contained in:
Evan Cheng 2007-02-16 09:49:18 +00:00
parent 64185104f1
commit 5b8b96e9de

View File

@ -263,6 +263,8 @@ void MachineInstr::print(std::ostream &OS, const TargetMachine *TM) const {
// Specialize printing if op#0 is definition
if (getNumOperands() && getOperand(0).isReg() && getOperand(0).isDef()) {
::print(getOperand(0), OS, TM);
if (getOperand(0).isDead())
OS << "<dead>";
OS << " = ";
++StartOp; // Don't print this operand again!
}