1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-18 18:42:46 +02:00

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();
else if (isExpr()) {
OS << "Expr:(" << *getExpr() << ")";
} else if (isInst()) {
OS << "Inst:(" << *getInst() << ")";
} else
OS << "UNDEFINED";
OS << ">";