[lld] a00f480 - [ELF] scanReloc: remove unused start parameter. NFC
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Sat Dec 25 14:34:12 PST 2021
Author: Fangrui Song
Date: 2021-12-25T14:34:06-08:00
New Revision: a00f480fe8ee5236abfe6ba89ec17f113b6fe132
URL: https://github.com/llvm/llvm-project/commit/a00f480fe8ee5236abfe6ba89ec17f113b6fe132
DIFF: https://github.com/llvm/llvm-project/commit/a00f480fe8ee5236abfe6ba89ec17f113b6fe132.diff
LOG: [ELF] scanReloc: remove unused start parameter. NFC
This was once used as a workaround for detecting missing PPC64 TLSGD/TLSLD
relocations produced by ancient IBM XL C/C++.
Added:
Modified:
lld/ELF/Relocations.cpp
Removed:
################################################################################
diff --git a/lld/ELF/Relocations.cpp b/lld/ELF/Relocations.cpp
index e0dc9a9fa3ea..719386e2e71f 100644
--- a/lld/ELF/Relocations.cpp
+++ b/lld/ELF/Relocations.cpp
@@ -1263,7 +1263,7 @@ static unsigned handleTlsRelocation(RelType type, Symbol &sym,
template <class ELFT, class RelTy>
static void scanReloc(InputSectionBase &sec, OffsetGetter &getOffset, RelTy *&i,
- RelTy *start, RelTy *end) {
+ RelTy *end) {
const RelTy &rel = *i;
uint32_t symIndex = rel.getSymbol(config->isMips64EL);
Symbol &sym = sec.getFile<ELFT>()->getSymbol(symIndex);
@@ -1470,7 +1470,7 @@ static void scanRelocs(InputSectionBase &sec, ArrayRef<RelTy> rels) {
rels = sortRels(rels, storage);
for (auto i = rels.begin(), end = rels.end(); i != end;)
- scanReloc<ELFT>(sec, getOffset, i, rels.begin(), end);
+ scanReloc<ELFT>(sec, getOffset, i, end);
// Sort relocations by offset for more efficient searching for
// R_RISCV_PCREL_HI20 and R_PPC64_ADDR64.
More information about the llvm-commits
mailing list