projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
MC: add a RefKind field to MCValue
[oota-llvm.git]
/
lib
/
MC
/
MCValue.cpp
diff --git
a/lib/MC/MCValue.cpp
b/lib/MC/MCValue.cpp
index 4393777211e80555e4bee1aec2fa16e6c7f1add1..68ecffbeab144bda3d30a73bd061446d8b3e50e2 100644
(file)
--- 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()) {