aboutsummaryrefslogtreecommitdiff
path: root/lib/MC/MCInst.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-01-18 00:37:40 +0000
committerChris Lattner <sabre@nondot.org>2010-01-18 00:37:40 +0000
commit8cb9a3b13f3226b7e741768b69d26ecd6b5231f1 (patch)
tree512b0fe9b4b5781e1547c555c92db9b42faa9b1e /lib/MC/MCInst.cpp
parent950558aa23dfeb0014b7081f61ab932fe8c6f25c (diff)
remove the MAI argument to MCExpr::print and switch overthing to use << when printing them.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@93699 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/MC/MCInst.cpp')
-rw-r--r--lib/MC/MCInst.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/MC/MCInst.cpp b/lib/MC/MCInst.cpp
index 7c7a644773..0634c9faf6 100644
--- a/lib/MC/MCInst.cpp
+++ b/lib/MC/MCInst.cpp
@@ -23,9 +23,7 @@ void MCOperand::print(raw_ostream &OS, const MCAsmInfo *MAI) const {
else if (isImm())
OS << "Imm:" << getImm();
else if (isExpr()) {
- OS << "Expr:(";
- getExpr()->print(OS, MAI);
- OS << ")";
+ OS << "Expr:(" << *getExpr() << ")";
} else
OS << "UNDEFINED";
OS << ">";