Remove MCELFObjectTargetWriter::adjustFixupOffset hack
authorUlrich Weigand <ulrich.weigand@de.ibm.com>
Wed, 15 May 2013 15:07:42 +0000 (15:07 +0000)
committerUlrich Weigand <ulrich.weigand@de.ibm.com>
Wed, 15 May 2013 15:07:42 +0000 (15:07 +0000)
Now that PowerPC no longer uses adjustFixupOffset, and no other
back-end (ever?) did, we can remove the infrastructure itself
(incidentally addressing a FIXME to that effect).

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181895 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/MC/MCELFObjectWriter.h
lib/MC/ELFObjectWriter.cpp
lib/MC/MCELFObjectTargetWriter.cpp

index 65dd1e8998cc657474f0e89a7c2dca12de4302e5..f8470ecdc568f01e6f545d88a0b6f6c7a2e90c64 100644 (file)
@@ -94,8 +94,6 @@ public:
   virtual const MCSymbol *undefinedExplicitRelSym(const MCValue &Target,
                                                   const MCFixup &Fixup,
                                                   bool IsPCRel) const;
-  virtual void adjustFixupOffset(const MCFixup &Fixup,
-                                 uint64_t &RelocOffset);
 
   virtual void sortRelocs(const MCAssembler &Asm,
                           std::vector<ELFRelocationEntry> &Relocs);
index 3d995484e7c71799c2e14b3e1e042c66561f2353..4f66156f6de22bb20da280f336564ba3f32c0ba3 100644 (file)
@@ -759,9 +759,6 @@ void ELFObjectWriter::RecordRelocation(const MCAssembler &Asm,
   uint64_t RelocOffset = Layout.getFragmentOffset(Fragment) +
     Fixup.getOffset();
 
-  // FIXME: no tests cover this. Is adjustFixupOffset dead code?
-  TargetObjectWriter->adjustFixupOffset(Fixup, RelocOffset);
-
   if (!hasRelocationAddend())
     Addend = 0;
 
index 4cac84d66609beba684f066ed6dd53dd7051a173..dc2a949807b6cf4b8c0c9511ad93f8fec5af7eb7 100644 (file)
@@ -39,10 +39,6 @@ const MCSymbol *MCELFObjectTargetWriter::undefinedExplicitRelSym(const MCValue &
   return &Symbol.AliasedSymbol();
 }
 
-void MCELFObjectTargetWriter::adjustFixupOffset(const MCFixup &Fixup,
-                                                uint64_t &RelocOffset) {
-}
-
 void
 MCELFObjectTargetWriter::sortRelocs(const MCAssembler &Asm,
                                     std::vector<ELFRelocationEntry> &Relocs) {