summaryrefslogtreecommitdiffstats
path: root/llvm/lib/MC/MCInst.cpp
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-08-31 08:08:38 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-08-31 08:08:38 +0000
commit73da11ebdad9a22afacb3f7755e3cd9ec2182920 (patch)
treea34b8a0c0c72fc294dcc2bc5bd2fc88dcf68d842 /llvm/lib/MC/MCInst.cpp
parent7c82d5693088873f75bea3e20e46149990bd52cd (diff)
downloadbcm5719-llvm-73da11ebdad9a22afacb3f7755e3cd9ec2182920.tar.gz
bcm5719-llvm-73da11ebdad9a22afacb3f7755e3cd9ec2182920.zip
llvm-mc: Switch MCInst to storing an MCExpr* instead of an MCValue.
Also, use MCInst::print instead of custom code in MCAsmPrinter. llvm-svn: 80575
Diffstat (limited to 'llvm/lib/MC/MCInst.cpp')
-rw-r--r--llvm/lib/MC/MCInst.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/llvm/lib/MC/MCInst.cpp b/llvm/lib/MC/MCInst.cpp
index 469dc7975e5..ec061463b75 100644
--- a/llvm/lib/MC/MCInst.cpp
+++ b/llvm/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";
OpenPOWER on IntegriCloud