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 | 0fe3a1ed4567dfdd45125c95beed6c6b77be2088 (patch) | |
tree | bd14333e8ed905f9665b6df0ed1165d19b77acf8 /lib/MC/MCValue.cpp | |
parent | ad1950e0138c65a6e0d329055b4f60402bc36cbb (diff) | |
download | external_llvm-0fe3a1ed4567dfdd45125c95beed6c6b77be2088.zip external_llvm-0fe3a1ed4567dfdd45125c95beed6c6b77be2088.tar.gz external_llvm-0fe3a1ed4567dfdd45125c95beed6c6b77be2088.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.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@80890 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/MC/MCValue.cpp')
-rw-r--r-- | lib/MC/MCValue.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/MC/MCValue.cpp b/lib/MC/MCValue.cpp index c7923da..69bd10c 100644 --- a/lib/MC/MCValue.cpp +++ b/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); } |