aboutsummaryrefslogtreecommitdiff
path: root/lib/MC/MCInst.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/MC/MCInst.cpp')
-rw-r--r--lib/MC/MCInst.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/MC/MCInst.cpp b/lib/MC/MCInst.cpp
index 469dc7975e..ec061463b7 100644
--- a/lib/MC/MCInst.cpp
+++ b/lib/MC/MCInst.cpp
@@ -8,6 +8,7 @@
//===----------------------------------------------------------------------===//
#include "llvm/MC/MCInst.h"
+#include "llvm/MC/MCExpr.h"
#include "llvm/Support/raw_ostream.h"
using namespace llvm;
@@ -23,9 +24,9 @@ void MCOperand::print(raw_ostream &OS) const {
else if (isMBBLabel())
OS << "MBB:(" << getMBBLabelFunction() << ","
<< getMBBLabelBlock() << ")";
- else if (isMCValue()) {
- OS << "Value:(";
- getMCValue().print(OS);
+ else if (isExpr()) {
+ OS << "Expr:(";
+ getExpr()->print(OS);
OS << ")";
} else
OS << "UNDEFINED";