summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Gohman <dan433584@gmail.com>2015-12-21 16:47:10 +0000
committerDan Gohman <dan433584@gmail.com>2015-12-21 16:47:10 +0000
commit1a81ad967f292e8cc4ec65ed4cf90e34bcee6e44 (patch)
treeef086b8841131dc2d86f337ea26d3b3d132d4497
parent0e1a49a3ee3897eb147b4d30022a62c9f0b96080 (diff)
Teach MCOperand::print how to print FPImm operands.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@256163 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/MC/MCInst.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/MC/MCInst.cpp b/lib/MC/MCInst.cpp
index 7ef69be66df..5f829aeb339 100644
--- a/lib/MC/MCInst.cpp
+++ b/lib/MC/MCInst.cpp
@@ -23,6 +23,8 @@ void MCOperand::print(raw_ostream &OS) const {
OS << "Reg:" << getReg();
else if (isImm())
OS << "Imm:" << getImm();
+ else if (isFPImm())
+ OS << "FPImm:" << getFPImm();
else if (isExpr()) {
OS << "Expr:(" << *getExpr() << ")";
} else if (isInst()) {