MC: add a RefKind field to MCValue
[oota-llvm.git] / lib / MC / MCValue.cpp
index 4393777211e80555e4bee1aec2fa16e6c7f1add1..68ecffbeab144bda3d30a73bd061446d8b3e50e2 100644 (file)
@@ -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()) {