From f4366a39982d30637c3d5bd90d936337ec1066c8 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Thu, 3 Sep 2009 05:46:51 +0000 Subject: Thread an MCAsmInfo pointer through the various MC printing APIs, and fix a few things using << on MCSymbols to use ->print(). No functionality change other than unbreaking my previous patch. llvm-svn: 80890 --- llvm/lib/MC/MCInst.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'llvm/lib/MC/MCInst.cpp') diff --git a/llvm/lib/MC/MCInst.cpp b/llvm/lib/MC/MCInst.cpp index ec061463b75..f19056bc9ad 100644 --- a/llvm/lib/MC/MCInst.cpp +++ b/llvm/lib/MC/MCInst.cpp @@ -13,7 +13,7 @@ using namespace llvm; -void MCOperand::print(raw_ostream &OS) const { +void MCOperand::print(raw_ostream &OS, const MCAsmInfo *MAI) const { OS << "print(OS); + getExpr()->print(OS, MAI); OS << ")"; } else OS << "UNDEFINED"; @@ -34,20 +34,20 @@ void MCOperand::print(raw_ostream &OS) const { } void MCOperand::dump() const { - print(errs()); + print(errs(), 0); errs() << "\n"; } -void MCInst::print(raw_ostream &OS) const { +void MCInst::print(raw_ostream &OS, const MCAsmInfo *MAI) const { OS << ""; } void MCInst::dump() const { - print(errs()); + print(errs(), 0); errs() << "\n"; } -- cgit v1.2.3