Record in a MCSymbolELF if it has been used in a relocation.
[oota-llvm.git] / lib / MC / MCSymbolELF.cpp
index cf609e5e87e7df26899d0f2d289c46ccad29f6c7..f8a90b9c8b84311b69a091365ae3252a3d29a0c6 100644 (file)
@@ -77,4 +77,13 @@ unsigned MCSymbolELF::getOther() const {
   unsigned Other = (getFlags() & (0x3f << ELF_STO_Shift)) >> ELF_STO_Shift;
   return Other;
 }
+
+void MCSymbolELF::setUsedInReloc() const {
+  UsedInReloc = true;
+}
+
+bool MCSymbolELF::isUsedInReloc() const {
+  return UsedInReloc;
+}
+
 }