#include "llvm/MC/MCInst.h"
#include "llvm/MC/MCExpr.h"
+#include "llvm/Support/Debug.h"
#include "llvm/Support/raw_ostream.h"
using namespace llvm;
else if (isImm())
OS << "Imm:" << getImm();
else if (isExpr()) {
- OS << "Expr:(";
- getExpr()->print(OS, MAI);
- OS << ")";
+ OS << "Expr:(" << *getExpr() << ")";
} else
OS << "UNDEFINED";
OS << ">";
}
void MCOperand::dump() const {
- print(errs(), 0);
- errs() << "\n";
+ print(dbgs(), 0);
+ dbgs() << "\n";
}
void MCInst::print(raw_ostream &OS, const MCAsmInfo *MAI) const {
}
void MCInst::dump() const {
- print(errs(), 0);
- errs() << "\n";
+ print(dbgs(), 0);
+ dbgs() << "\n";
}