Print <dead> def operands.

llvm-svn: 34343
This commit is contained in:
Evan Cheng 2007-02-16 09:49:18 +00:00
parent 7238410766
commit 66cb162f92
1 changed files with 2 additions and 0 deletions

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!
}