remove the MAI argument to MCExpr::print and switch overthing to use << when printing...
[oota-llvm.git] / lib / MC / MCInst.cpp
index 7c7a6447736c507e80c08f1a04bd8f0db69261d1..0634c9faf6fad26e2db09ae964a4858e00d0bec6 100644 (file)
@@ -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 << ">";