diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-08-14 03:41:23 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-08-14 03:41:23 +0000 |
commit | 1689e0cf55205042b830fdbe3fc5f7b483997334 (patch) | |
tree | 43fdece8e9cfa0080b29d40031bb043d860aaf49 /lib/MC/MCValue.cpp | |
parent | 2c11624b65a65fe487f335603dc0bf6372a50a89 (diff) |
Add MCSymbol::{print, dump}
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78983 91177308-0d34-0410-b5e6-96231b3b80d8
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(); } |