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
This commit is contained in:
Ruchira Sasanka 2001-10-18 22:40:02 +00:00
parent 735d6e3ee2
commit 69917e27af

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;