From 73da11ebdad9a22afacb3f7755e3cd9ec2182920 Mon Sep 17 00:00:00 2001 From: Daniel Dunbar Date: Mon, 31 Aug 2009 08:08:38 +0000 Subject: 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 --- llvm/lib/MC/MCInst.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'llvm/lib/MC/MCInst.cpp') 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"; -- cgit v1.2.3