Added implict operand printing for operator( ostream, MachineInstr&)

llvm-svn: 912
This commit is contained in:
Ruchira Sasanka 2001-10-18 22:40:02 +00:00
parent 5f629318fa
commit 59e864eb92
1 changed files with 20 additions and 0 deletions

View File

@ -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;