aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/MachineInstr.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/CodeGen/MachineInstr.cpp')
-rw-r--r--lib/CodeGen/MachineInstr.cpp20
1 files changed, 20 insertions, 0 deletions
diff --git a/lib/CodeGen/MachineInstr.cpp b/lib/CodeGen/MachineInstr.cpp
index 76fd4e7c83..2ec791f11b 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;