mirror of
https://github.com/RPCSX/llvm.git
synced 2025-01-27 07:12:06 +00:00
Small changed to printing a machine operand - It the operand is a def, it prints
a star after it - only for debugging git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1309 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
ecd5813639
commit
8d24337eea
@ -92,8 +92,11 @@ operator<< (ostream& os, const MachineInstr& minstr)
|
||||
{
|
||||
os << TargetInstrDescriptors[minstr.opCode].opCodeString;
|
||||
|
||||
for (unsigned i=0, N=minstr.getNumOperands(); i < N; i++)
|
||||
for (unsigned i=0, N=minstr.getNumOperands(); i < N; i++) {
|
||||
os << "\t" << minstr.getOperand(i);
|
||||
if( minstr.getOperand(i).opIsDef() ) os << "*";
|
||||
|
||||
}
|
||||
|
||||
#undef DEBUG_VAL_OP_ITERATOR
|
||||
#ifdef DEBUG_VAL_OP_ITERATOR
|
||||
@ -117,7 +120,8 @@ operator<< (ostream& os, const MachineInstr& minstr)
|
||||
|
||||
for(unsigned z=0; z < NumOfImpRefs; z++) {
|
||||
os << minstr.getImplicitRef(z);
|
||||
cout << "\t";
|
||||
if( minstr.implicitRefIsDefined(z)) os << "*";
|
||||
cout << "\t";
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user