summaryrefslogtreecommitdiff
path: root/lib/MC/MCValue.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/MC/MCValue.cpp')
-rw-r--r--lib/MC/MCValue.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/MC/MCValue.cpp b/lib/MC/MCValue.cpp
index 4393777211..68ecffbeab 100644
--- a/lib/MC/MCValue.cpp
+++ b/lib/MC/MCValue.cpp
@@ -20,6 +20,11 @@ void MCValue::print(raw_ostream &OS, const MCAsmInfo *MAI) const {
return;
}
+ // FIXME: prints as a number, which isn't ideal. But the meaning will be
+ // target-specific anyway.
+ if (getRefKind())
+ OS << ':' << getRefKind() << ':';
+
getSymA()->print(OS);
if (getSymB()) {