projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c5b4632
)
Improved dump for disp type operand.
author
Vikram S. Adve
<vadve@cs.uiuc.edu>
Sun, 30 Sep 2001 23:44:19 +0000
(23:44 +0000)
committer
Vikram S. Adve
<vadve@cs.uiuc.edu>
Sun, 30 Sep 2001 23:44:19 +0000
(23:44 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@679
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/CodeGen/MachineInstr.cpp
patch
|
blob
|
history
diff --git
a/lib/CodeGen/MachineInstr.cpp
b/lib/CodeGen/MachineInstr.cpp
index 1db2d48fc9e9ec8295fdf24ad430806e9183c642..1e3300763de2b3dda02f48f7f3a1febe1671cccb 100644
(file)
--- a/
lib/CodeGen/MachineInstr.cpp
+++ b/
lib/CodeGen/MachineInstr.cpp
@@
-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;