projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
IR: ArrayRef-ize {Insert,Extract}ValueConstantExpr constructors
[oota-llvm.git]
/
lib
/
MC
/
MCInst.cpp
diff --git
a/lib/MC/MCInst.cpp
b/lib/MC/MCInst.cpp
index 4cb628b395c3fba2ca0a61d26fa32499f235d217..d7b80f589057e6d34e18df4e5cdf007bcf2707b9 100644
(file)
--- a/
lib/MC/MCInst.cpp
+++ b/
lib/MC/MCInst.cpp
@@
-25,15
+25,19
@@
void MCOperand::print(raw_ostream &OS, const MCAsmInfo *MAI) const {
OS << "Imm:" << getImm();
else if (isExpr()) {
OS << "Expr:(" << *getExpr() << ")";
OS << "Imm:" << getImm();
else if (isExpr()) {
OS << "Expr:(" << *getExpr() << ")";
+ } else if (isInst()) {
+ OS << "Inst:(" << *getInst() << ")";
} else
OS << "UNDEFINED";
OS << ">";
}
} else
OS << "UNDEFINED";
OS << ">";
}
+#if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP)
void MCOperand::dump() const {
void MCOperand::dump() const {
- print(dbgs(),
0
);
+ print(dbgs(),
nullptr
);
dbgs() << "\n";
}
dbgs() << "\n";
}
+#endif
void MCInst::print(raw_ostream &OS, const MCAsmInfo *MAI) const {
OS << "<MCInst " << getOpcode();
void MCInst::print(raw_ostream &OS, const MCAsmInfo *MAI) const {
OS << "<MCInst " << getOpcode();
@@
-60,7
+64,9
@@
void MCInst::dump_pretty(raw_ostream &OS, const MCAsmInfo *MAI,
OS << ">";
}
OS << ">";
}
+#if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP)
void MCInst::dump() const {
void MCInst::dump() const {
- print(dbgs(),
0
);
+ print(dbgs(),
nullptr
);
dbgs() << "\n";
}
dbgs() << "\n";
}
+#endif