[ELF] Add Relocs and invokeOnRelocs. NFC
authorFangrui Song <i@maskray.me>
Sat, 27 Jul 2024 17:55:17 +0000 (10:55 -0700)
committerTobias Hieta <tobias@hieta.se>
Mon, 29 Jul 2024 08:06:37 +0000 (10:06 +0200)
commit66c08d9095d8795ef5d8ff7bb9940d560a4e0eab
tree63b9a5261e5332d28804d436b1806fe81924826c
parent28e2baaeed86fd330d1e0fcacefaf6221685be23
[ELF] Add Relocs and invokeOnRelocs. NFC

Relocs is to simplify CREL support (#98115) while invokeOnRelocs
simplifies some relsOrRelas call sites that will use the CREL iterator.

(cherry picked from commit 6efc3774bd8c5fcb105cda73ec27c05ef850dc19)
lld/ELF/ICF.cpp
lld/ELF/InputSection.cpp
lld/ELF/InputSection.h
lld/ELF/Relocations.cpp
lld/ELF/Relocations.h
lld/ELF/SyntheticSections.cpp
lld/ELF/SyntheticSections.h