mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-18 01:35:44 +00:00
Add a dump() implementation for sub-instruction MCOperands.
llvm-svn: 148493
This commit is contained in:
parent
61bdf3c55c
commit
989d05dfdb
@ -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 << ">";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user