Remove MCELFObjectTargetWriter::adjustFixupOffset hack
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). llvm-svn: 181895
This commit is contained in:
parent
2fb140ef31
commit
0684076858
|
@ -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);
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue