Fix fixup evaluation when deciding what to relocate with.
[oota-llvm.git] / include / llvm / MC / MCObjectWriter.h
index 2676cb70039c7fe70fcf6ae54202b9a2c1eaa007..dd8effb1baaf5c14e215c2293e7bcdaf7e49f4d1 100644 (file)
@@ -99,6 +99,11 @@ public:
                                          bool InSet,
                                          bool IsPCRel) const;
 
+  /// \brief True if this symbol (which is a variable) is weak. This is not
+  /// just STB_WEAK, but more generally whether or not we can evaluate
+  /// past it.
+  virtual bool isWeak(const MCSymbolData &SD) const;
+
   /// \brief Write the object file.
   ///
   /// This routine is called by the assembler after layout and relaxation is