Completely rewrite ELFObjectWriter::RecordRelocation.
[oota-llvm.git] / lib / MC / WinCOFFObjectWriter.cpp
index e41a6bdfca7b3d9bcc804f2850ab35643fb2aa21..500acd8f14efa873b1fa2bde0bff83350b0b9b8c 100644 (file)
@@ -172,7 +172,8 @@ public:
 
   void RecordRelocation(const MCAssembler &Asm, const MCAsmLayout &Layout,
                         const MCFragment *Fragment, const MCFixup &Fixup,
-                        MCValue Target, uint64_t &FixedValue) override;
+                        MCValue Target, bool &IsPCRel,
+                        uint64_t &FixedValue) override;
 
   void WriteObject(MCAssembler &Asm, const MCAsmLayout &Layout) override;
 };
@@ -656,6 +657,7 @@ void WinCOFFObjectWriter::RecordRelocation(const MCAssembler &Asm,
                                            const MCFragment *Fragment,
                                            const MCFixup &Fixup,
                                            MCValue Target,
+                                           bool &IsPCRel,
                                            uint64_t &FixedValue) {
   assert(Target.getSymA() != NULL && "Relocation must reference a symbol!");