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 | 69917e27af9248cbce98bb56f1e1b5286aede759 (patch) | |
tree | fd1697c8fbb51a5d250ec1e37559e60cd43a9b5d /lib/CodeGen/MachineInstr.cpp | |
parent | 735d6e3ee272e57a794c262abce19d202439b826 (diff) | |
download | external_llvm-69917e27af9248cbce98bb56f1e1b5286aede759.zip external_llvm-69917e27af9248cbce98bb56f1e1b5286aede759.tar.gz external_llvm-69917e27af9248cbce98bb56f1e1b5286aede759.tar.bz2 |
Added implict operand printing for operator( ostream, MachineInstr&)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@912 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/MachineInstr.cpp')
-rw-r--r-- | lib/CodeGen/MachineInstr.cpp | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/lib/CodeGen/MachineInstr.cpp b/lib/CodeGen/MachineInstr.cpp index 76fd4e7..2ec791f 100644 --- a/lib/CodeGen/MachineInstr.cpp +++ b/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; |