summaryrefslogtreecommitdiffstats
path: root/llvm/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
commit8b5d55ed065cb070540b7be09a67181206fdd58e (patch)
tree48f540ac6bd4f7a9a56409a25b562552366dcd7c /llvm/lib/MC/MCValue.cpp
parent043e656797eb6037117cce42fd73aec73e03ca5c (diff)
downloadbcm5719-llvm-8b5d55ed065cb070540b7be09a67181206fdd58e.tar.gz
bcm5719-llvm-8b5d55ed065cb070540b7be09a67181206fdd58e.zip
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. llvm-svn: 93695
Diffstat (limited to 'llvm/lib/MC/MCValue.cpp')
-rw-r--r--llvm/lib/MC/MCValue.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/llvm/lib/MC/MCValue.cpp b/llvm/lib/MC/MCValue.cpp
index c1222ec8872..043a49d80c6 100644
--- a/llvm/lib/MC/MCValue.cpp
+++ b/llvm/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();
OpenPOWER on IntegriCloud