summaryrefslogtreecommitdiffstats
path: root/lib/MC/MCValue.cpp
diff options
context:
space:
mode:
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();
OpenPOWER on IntegriCloud