Skip to content

Commit

Permalink
[ELF] Remove unused processRelocAux argument. NFC
Browse files Browse the repository at this point in the history
  • Loading branch information
MaskRay committed Aug 29, 2021
1 parent 0886fd5 commit 204b290
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions lld/ELF/Relocations.cpp
Expand Up @@ -1149,10 +1149,9 @@ static bool canDefineSymbolInExecutable(Symbol &sym) {
// sections. Given that it is ro, we will need an extra PT_LOAD. This
// complicates things for the dynamic linker and means we would have to reserve
// space for the extra PT_LOAD even if we end up not using it.
template <class ELFT, class RelTy>
template <class ELFT>
static void processRelocAux(InputSectionBase &sec, RelExpr expr, RelType type,
uint64_t offset, Symbol &sym, const RelTy &rel,
int64_t addend) {
uint64_t offset, Symbol &sym, int64_t addend) {
// If the relocation is known to be a link-time constant, we know no dynamic
// relocation will be created, pass the control to relocateAlloc() or
// relocateNonAlloc() to resolve it.
Expand Down Expand Up @@ -1543,7 +1542,7 @@ static void scanReloc(InputSectionBase &sec, OffsetGetter &getOffset, RelTy *&i,
}
}

processRelocAux<ELFT>(sec, expr, type, offset, sym, rel, addend);
processRelocAux<ELFT>(sec, expr, type, offset, sym, addend);
}

// R_PPC64_TLSGD/R_PPC64_TLSLD is required to mark `bl __tls_get_addr` for
Expand Down

0 comments on commit 204b290

Please sign in to comment.