diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-08-31 08:08:38 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-08-31 08:08:38 +0000 |
commit | 8c2eebe4074ef218b30d94358f6b2e45c079605c (patch) | |
tree | e44c45883a8e8d40ba8b2529f467378cb0233538 /lib/MC/MCInst.cpp | |
parent | c18274ba9cabd5699452870daae3c2d9accecc37 (diff) |
llvm-mc: Switch MCInst to storing an MCExpr* instead of an MCValue.
Also, use MCInst::print instead of custom code in MCAsmPrinter.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@80575 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/MC/MCInst.cpp')
-rw-r--r-- | lib/MC/MCInst.cpp | 7 |
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"; |