aboutsummaryrefslogtreecommitdiff
path: root/lib/MC/MCValue.cpp
diff options
context:
space:
mode:
authorRoman Divacky <rdivacky@FreeBSD.org>2010-03-21 10:49:05 +0000
committerRoman Divacky <rdivacky@FreeBSD.org>2010-03-21 10:49:05 +0000
commit2f12f10af369d468b14617276446166383d692ed (patch)
tree2caca31db4facdc95c23930c0c745c8ef0dee97d /lib/MC/MCValue.cpp
parentc69102774f9739c81ae1285ed9ae62405071c63c (diff)
downloadsrc-2f12f10af369d468b14617276446166383d692ed.tar.gz
src-2f12f10af369d468b14617276446166383d692ed.zip
Update LLVM to r99115.
Notes
Notes: svn path=/vendor/llvm/dist/; revision=205407
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 043a49d80c6c..c6ea16ce7b4d 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();