diff options
author | Chris Lattner <sabre@nondot.org> | 2010-01-17 21:43:43 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-01-17 21:43:43 +0000 |
commit | 8b5d55ed065cb070540b7be09a67181206fdd58e (patch) | |
tree | 48f540ac6bd4f7a9a56409a25b562552366dcd7c /llvm/lib/MC/MCValue.cpp | |
parent | 043e656797eb6037117cce42fd73aec73e03ca5c (diff) | |
download | bcm5719-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.cpp | 8 |
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(); |