Add a dump() implementation for sub-instruction MCOperands.

llvm-svn: 148493
This commit is contained in:
Owen Anderson 2012-01-19 19:32:20 +00:00
parent 61bdf3c55c
commit 989d05dfdb

View File

@ -25,6 +25,8 @@ void MCOperand::print(raw_ostream &OS, const MCAsmInfo *MAI) const {
OS << "Imm:" << getImm(); OS << "Imm:" << getImm();
else if (isExpr()) { else if (isExpr()) {
OS << "Expr:(" << *getExpr() << ")"; OS << "Expr:(" << *getExpr() << ")";
} else if (isInst()) {
OS << "Inst:(" << *getInst() << ")";
} else } else
OS << "UNDEFINED"; OS << "UNDEFINED";
OS << ">"; OS << ">";