aboutsummaryrefslogtreecommitdiffstats
path: root/lib/MC/MCValue.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-01-17 21:43:43 +0000
committerChris Lattner <sabre@nondot.org>2010-01-17 21:43:43 +0000
commitce40984980d8cc39e903382478c111d967aed337 (patch)
tree414ec32f01b35456c581d19ab8214974df2d211c /lib/MC/MCValue.cpp
parent165c3a26c268ad9664167ba5616555c11f7b7a06 (diff)
downloadexternal_llvm-ce40984980d8cc39e903382478c111d967aed337.zip
external_llvm-ce40984980d8cc39e903382478c111d967aed337.tar.gz
external_llvm-ce40984980d8cc39e903382478c111d967aed337.tar.bz2
now that MCSymbol::print doesn't use it's MAI argument, we can
remove it and change all the code that prints MCSymbols to use << instead, which is much simpler and cleaner. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@93695 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/MC/MCValue.cpp')
-rw-r--r--lib/MC/MCValue.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/lib/MC/MCValue.cpp b/lib/MC/MCValue.cpp
index c1222ec..043a49d 100644
--- a/lib/MC/MCValue.cpp
+++ b/lib/MC/MCValue.cpp
@@ -19,12 +19,10 @@ void MCValue::print(raw_ostream &OS, const MCAsmInfo *MAI) const {
return;
}
- getSymA()->print(OS, MAI);
+ OS << *getSymA();
- if (getSymB()) {
- OS << " - ";
- getSymB()->print(OS, MAI);
- }
+ if (getSymB())
+ OS << " - " << *getSymB();
if (getConstant())
OS << " + " << getConstant();