diff options
author | Ruchira Sasanka <sasanka@students.uiuc.edu> | 2001-11-14 20:05:23 +0000 |
---|---|---|
committer | Ruchira Sasanka <sasanka@students.uiuc.edu> | 2001-11-14 20:05:23 +0000 |
commit | 64f7567391d21525c42e0255c3f70366fa5fbba4 (patch) | |
tree | 77957fd29b1475a7c8778d6f52eae820a5451c51 /llvm/lib/CodeGen/MachineInstr.cpp | |
parent | cba86d060b51f2c7bcb56714ed682816cdbe1618 (diff) | |
download | bcm5719-llvm-64f7567391d21525c42e0255c3f70366fa5fbba4.tar.gz bcm5719-llvm-64f7567391d21525c42e0255c3f70366fa5fbba4.zip |
Small changed to printing a machine operand - It the operand is a def, it prints
a star after it - only for debugging
llvm-svn: 1309
Diffstat (limited to 'llvm/lib/CodeGen/MachineInstr.cpp')
-rw-r--r-- | llvm/lib/CodeGen/MachineInstr.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/MachineInstr.cpp b/llvm/lib/CodeGen/MachineInstr.cpp index 3ce7a2a7f1b..5993daf65a0 100644 --- a/llvm/lib/CodeGen/MachineInstr.cpp +++ b/llvm/lib/CodeGen/MachineInstr.cpp @@ -92,8 +92,11 @@ operator<< (ostream& os, const MachineInstr& minstr) { os << TargetInstrDescriptors[minstr.opCode].opCodeString; - for (unsigned i=0, N=minstr.getNumOperands(); i < N; i++) + for (unsigned i=0, N=minstr.getNumOperands(); i < N; i++) { os << "\t" << minstr.getOperand(i); + if( minstr.getOperand(i).opIsDef() ) os << "*"; + + } #undef DEBUG_VAL_OP_ITERATOR #ifdef DEBUG_VAL_OP_ITERATOR @@ -117,7 +120,8 @@ operator<< (ostream& os, const MachineInstr& minstr) for(unsigned z=0; z < NumOfImpRefs; z++) { os << minstr.getImplicitRef(z); - cout << "\t"; + if( minstr.implicitRefIsDefined(z)) os << "*"; + cout << "\t"; } } |