[lld] 204b290 - [ELF] Remove unused processRelocAux argument. NFC
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Sun Aug 29 12:08:05 PDT 2021
Author: Fangrui Song
Date: 2021-08-29T12:07:56-07:00
New Revision: 204b2902d5f3cfbefdc58d81048d0688cb7be972
URL: https://github.com/llvm/llvm-project/commit/204b2902d5f3cfbefdc58d81048d0688cb7be972
DIFF: https://github.com/llvm/llvm-project/commit/204b2902d5f3cfbefdc58d81048d0688cb7be972.diff
LOG: [ELF] Remove unused processRelocAux argument. NFC
Added:
Modified:
lld/ELF/Relocations.cpp
Removed:
################################################################################
diff --git a/lld/ELF/Relocations.cpp b/lld/ELF/Relocations.cpp
index 537859f9e0b5b..72e9b1ee4b289 100644
--- a/lld/ELF/Relocations.cpp
+++ b/lld/ELF/Relocations.cpp
@@ -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.
@@ -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
More information about the llvm-commits
mailing list