[llvm-commits] [llvm] r148493 - /llvm/trunk/lib/MC/MCInst.cpp
Owen Anderson
resistor at mac.com
Thu Jan 19 11:32:20 PST 2012
Author: resistor
Date: Thu Jan 19 13:32:20 2012
New Revision: 148493
URL: http://llvm.org/viewvc/llvm-project?rev=148493&view=rev
Log:
Add a dump() implementation for sub-instruction MCOperands.
Modified:
llvm/trunk/lib/MC/MCInst.cpp
Modified: llvm/trunk/lib/MC/MCInst.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/MC/MCInst.cpp?rev=148493&r1=148492&r2=148493&view=diff
==============================================================================
--- llvm/trunk/lib/MC/MCInst.cpp (original)
+++ llvm/trunk/lib/MC/MCInst.cpp Thu Jan 19 13:32:20 2012
@@ -25,6 +25,8 @@
OS << "Imm:" << getImm();
else if (isExpr()) {
OS << "Expr:(" << *getExpr() << ")";
+ } else if (isInst()) {
+ OS << "Inst:(" << *getInst() << ")";
} else
OS << "UNDEFINED";
OS << ">";
More information about the llvm-commits
mailing list