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:
7b672fe
)
Add a dump() implementation for sub-instruction MCOperands.
author
Owen Anderson
<resistor@mac.com>
Thu, 19 Jan 2012 19:32:20 +0000
(19:32 +0000)
committer
Owen Anderson
<resistor@mac.com>
Thu, 19 Jan 2012 19:32:20 +0000
(19:32 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@148493
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/MC/MCInst.cpp
patch
|
blob
|
history
diff --git
a/lib/MC/MCInst.cpp
b/lib/MC/MCInst.cpp
index 4cb628b395c3fba2ca0a61d26fa32499f235d217..7bbfd2efa136676c668873245b87ca971975d1f5 100644
(file)
--- a/
lib/MC/MCInst.cpp
+++ b/
lib/MC/MCInst.cpp
@@
-25,6
+25,8
@@
void MCOperand::print(raw_ostream &OS, const MCAsmInfo *MAI) const {
OS << "Imm:" << getImm();
else if (isExpr()) {
OS << "Expr:(" << *getExpr() << ")";
+ } else if (isInst()) {
+ OS << "Inst:(" << *getInst() << ")";
} else
OS << "UNDEFINED";
OS << ">";