aboutsummaryrefslogtreecommitdiffstats
path: root/lib/MC/MCValue.cpp
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2010-03-18 00:59:10 +0000
committerDaniel Dunbar <daniel@zuster.org>2010-03-18 00:59:10 +0000
commitba99131acd07f0c5541139b2ee42e510655b98a9 (patch)
tree57fc2bda07a314002464dd7eb03b25e372974ba5 /lib/MC/MCValue.cpp
parent67d7639117cada2da93a8289daac9d76c91c9f67 (diff)
downloadexternal_llvm-ba99131acd07f0c5541139b2ee42e510655b98a9.zip
external_llvm-ba99131acd07f0c5541139b2ee42e510655b98a9.tar.gz
external_llvm-ba99131acd07f0c5541139b2ee42e510655b98a9.tar.bz2
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.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/lib/MC/MCValue.cpp b/lib/MC/MCValue.cpp
index 043a49d..c6ea16c 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();