mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-03-05 12:31:46 +00:00
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:
parent
735d6e3ee2
commit
69917e27af
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user