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 | 9c64ec0a7ed048c2c899e923895d38eeffdb21f7 (patch) | |
| tree | 67dee36784f6dad6c008072207bb18b4f392dd46 /llvm/lib/MC/MCValue.cpp | |
| parent | 6a7bd66d8e6b2ae5248b499483b85399d6ab95dc (diff) | |
| download | bcm5719-llvm-9c64ec0a7ed048c2c899e923895d38eeffdb21f7.tar.gz bcm5719-llvm-9c64ec0a7ed048c2c899e923895d38eeffdb21f7.zip | |
MCValue: Change to holding MCSymbolRefExprs instead of MCSymbols, we will need this for accessing to symbol modifiers.
llvm-svn: 98791
Diffstat (limited to 'llvm/lib/MC/MCValue.cpp')
| -rw-r--r-- | llvm/lib/MC/MCValue.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/llvm/lib/MC/MCValue.cpp b/llvm/lib/MC/MCValue.cpp index 043a49d80c6..c6ea16ce7b4 100644 --- a/llvm/lib/MC/MCValue.cpp +++ b/llvm/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(); |

