diff options
author | Chris Lattner <sabre@nondot.org> | 2009-09-03 05:46:51 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-09-03 05:46:51 +0000 |
commit | f4366a39982d30637c3d5bd90d936337ec1066c8 (patch) | |
tree | 9127e5abf20925b725325bb80a84b47a9b710ada /llvm/lib/MC/MCInst.cpp | |
parent | 1a67fe8862e91e27bc01c0adea754922200f4a59 (diff) | |
download | bcm5719-llvm-f4366a39982d30637c3d5bd90d936337ec1066c8.tar.gz bcm5719-llvm-f4366a39982d30637c3d5bd90d936337ec1066c8.zip |
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
Diffstat (limited to 'llvm/lib/MC/MCInst.cpp')
-rw-r--r-- | llvm/lib/MC/MCInst.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
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 << "<MCOperand "; if (!isValid()) OS << "INVALID"; @@ -26,7 +26,7 @@ void MCOperand::print(raw_ostream &OS) const { << getMBBLabelBlock() << ")"; else if (isExpr()) { OS << "Expr:("; - getExpr()->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 << "<MCInst " << getOpcode(); for (unsigned i = 0, e = getNumOperands(); i != e; ++i) { OS << " "; - getOperand(i).print(OS); + getOperand(i).print(OS, MAI); } OS << ">"; } void MCInst::dump() const { - print(errs()); + print(errs(), 0); errs() << "\n"; } |