diff options
author | Daniel Dunbar <daniel@zuster.org> | 2010-03-18 00:59:10 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2010-03-18 00:59:10 +0000 |
commit | 9a1d20042f6a6ec648a3588f9b13264a4570aab0 (patch) | |
tree | 57fc2bda07a314002464dd7eb03b25e372974ba5 /lib/MC/MCValue.cpp | |
parent | daf97333697e1d243e531f4be648b1640d6a58bb (diff) |
MCValue: Change to holding MCSymbolRefExprs instead of MCSymbols, we will need this for accessing to symbol modifiers.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@98791 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/MC/MCValue.cpp')
-rw-r--r-- | lib/MC/MCValue.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/lib/MC/MCValue.cpp b/lib/MC/MCValue.cpp index 043a49d80c..c6ea16ce7b 100644 --- a/lib/MC/MCValue.cpp +++ b/lib/MC/MCValue.cpp @@ -8,6 +8,7 @@ //===----------------------------------------------------------------------===// #include "llvm/MC/MCValue.h" +#include "llvm/MC/MCExpr.h" #include "llvm/Support/Debug.h" #include "llvm/Support/raw_ostream.h" @@ -19,10 +20,12 @@ void MCValue::print(raw_ostream &OS, const MCAsmInfo *MAI) const { return; } - OS << *getSymA(); + getSymA()->print(OS); - if (getSymB()) - OS << " - " << *getSymB(); + if (getSymB()) { + OS << " - "; + getSymB()->print(OS); + } if (getConstant()) OS << " + " << getConstant(); |