MachObjectWriter: optimize the string table for common suffices
[oota-llvm.git] / include / llvm / MC / MCWinCOFFObjectWriter.h
index e79e4bc83de1372793c53f68d6d001c00d36d6d4..dad7bb597039ba31039eeea1d84ab57518b9b9ea 100644 (file)
@@ -17,9 +17,8 @@ namespace llvm {
   class raw_ostream;
 
   class MCWinCOFFObjectTargetWriter {
-    const unsigned Machine;
-
     virtual void anchor();
+    const unsigned Machine;
 
   protected:
     MCWinCOFFObjectTargetWriter(unsigned Machine_);
@@ -31,6 +30,7 @@ namespace llvm {
     virtual unsigned getRelocType(const MCValue &Target,
                                   const MCFixup &Fixup,
                                   bool IsCrossSection) const = 0;
+    virtual bool recordRelocation(const MCFixup &) const { return true; }
   };
 
   /// \brief Construct a new Win COFF writer instance.