diff options
author | Ruchira Sasanka <sasanka@students.uiuc.edu> | 2001-10-18 22:40:02 +0000 |
---|---|---|
committer | Ruchira Sasanka <sasanka@students.uiuc.edu> | 2001-10-18 22:40:02 +0000 |
commit | 59e864eb92a77ac6b7858458ca24a01f6c39c782 (patch) | |
tree | 26686a972cf966ec10ebce93aade662a5bec6777 /llvm/lib/CodeGen/MachineInstr.cpp | |
parent | 5f629318fa7da04a2594658e9ba3c01b62463e2b (diff) | |
download | bcm5719-llvm-59e864eb92a77ac6b7858458ca24a01f6c39c782.tar.gz bcm5719-llvm-59e864eb92a77ac6b7858458ca24a01f6c39c782.zip |
Added implict operand printing for operator( ostream, MachineInstr&)
llvm-svn: 912
Diffstat (limited to 'llvm/lib/CodeGen/MachineInstr.cpp')
-rw-r--r-- | llvm/lib/CodeGen/MachineInstr.cpp | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/MachineInstr.cpp b/llvm/lib/CodeGen/MachineInstr.cpp index 76fd4e7c835..2ec791f11b6 100644 --- a/llvm/lib/CodeGen/MachineInstr.cpp +++ b/llvm/lib/CodeGen/MachineInstr.cpp @@ -19,6 +19,7 @@ #include "llvm/Instruction.h" + //************************ Class Implementations **************************/ // Constructor for instructions with fixed #operands (nearly all) @@ -100,6 +101,25 @@ operator<< (ostream& os, const MachineInstr& minstr) } #endif + + +#if 1 + // code for printing implict references + + unsigned NumOfImpRefs = minstr.getNumImplicitRefs(); + if( NumOfImpRefs > 0 ) { + + os << "\tImplicit:"; + + for(unsigned z=0; z < NumOfImpRefs; z++) { + os << minstr.getImplicitRef(z); + cout << "\t"; + } + } + +#endif + + os << endl; return os; |