diff options
Diffstat (limited to 'lib/MC/MCValue.cpp')
-rw-r--r-- | lib/MC/MCValue.cpp | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/lib/MC/MCValue.cpp b/lib/MC/MCValue.cpp index 9c7317096c..c7923da764 100644 --- a/lib/MC/MCValue.cpp +++ b/lib/MC/MCValue.cpp @@ -18,9 +18,13 @@ void MCValue::print(raw_ostream &OS) const { return; } - OS << getSymA(); - if (getSymB()) - OS << " - " << getSymB(); + getSymA()->print(OS); + + if (getSymB()) { + OS << " - "; + getSymB()->print(OS); + } + if (getConstant()) OS << " + " << getConstant(); } |