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/MCValue.cpp | |
parent | 1a67fe8862e91e27bc01c0adea754922200f4a59 (diff) | |
download | llvm-f4366a39982d30637c3d5bd90d936337ec1066c8.zip llvm-f4366a39982d30637c3d5bd90d936337ec1066c8.tar.gz llvm-f4366a39982d30637c3d5bd90d936337ec1066c8.tar.bz2 |
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/MCValue.cpp')
-rw-r--r-- | llvm/lib/MC/MCValue.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/lib/MC/MCValue.cpp b/llvm/lib/MC/MCValue.cpp index c7923da..69bd10c 100644 --- a/llvm/lib/MC/MCValue.cpp +++ b/llvm/lib/MC/MCValue.cpp @@ -12,17 +12,17 @@ using namespace llvm; -void MCValue::print(raw_ostream &OS) const { +void MCValue::print(raw_ostream &OS, const MCAsmInfo *MAI) const { if (isAbsolute()) { OS << getConstant(); return; } - getSymA()->print(OS); + getSymA()->print(OS, MAI); if (getSymB()) { OS << " - "; - getSymB()->print(OS); + getSymB()->print(OS, MAI); } if (getConstant()) @@ -30,5 +30,5 @@ void MCValue::print(raw_ostream &OS) const { } void MCValue::dump() const { - print(errs()); + print(errs(), 0); } |