mirror of
https://github.com/RPCSX/llvm.git
synced 2025-02-07 21:20:18 +00:00
Improved dump for disp type operand.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@679 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
c5b4632c27
commit
e949da5bb1
@ -139,7 +139,13 @@ operator<<(ostream &os, const MachineOperand &mop)
|
||||
case MachineOperand::MO_UnextendedImmed:
|
||||
return os << mop.immedVal;
|
||||
case MachineOperand::MO_PCRelativeDisp:
|
||||
return os << "%disp(label " << mop.getVRegValue() << ")";
|
||||
{
|
||||
const Value* opVal = mop.getVRegValue();
|
||||
bool isLabel = opVal->isMethod() || opVal->isBasicBlock();
|
||||
return os << "%disp("
|
||||
<< (isLabel? "label " : "addr-of-val ")
|
||||
<< opVal << ")";
|
||||
}
|
||||
default:
|
||||
assert(0 && "Unrecognized operand type");
|
||||
break;
|
||||
|
Loading…
x
Reference in New Issue
Block a user