[lld] dd4f5d4 - [ELF] De-template handleTlsRelocation. NFC
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Sat Dec 25 14:23:17 PST 2021
Author: Fangrui Song
Date: 2021-12-25T14:23:13-08:00
New Revision: dd4f5d4ae57703a9b79e466e027674fbeac80d41
URL: https://github.com/llvm/llvm-project/commit/dd4f5d4ae57703a9b79e466e027674fbeac80d41
DIFF: https://github.com/llvm/llvm-project/commit/dd4f5d4ae57703a9b79e466e027674fbeac80d41.diff
LOG: [ELF] De-template handleTlsRelocation. NFC
Added:
Modified:
lld/ELF/Relocations.cpp
Removed:
################################################################################
diff --git a/lld/ELF/Relocations.cpp b/lld/ELF/Relocations.cpp
index cfe49007b814a..e0dc9a9fa3eac 100644
--- a/lld/ELF/Relocations.cpp
+++ b/lld/ELF/Relocations.cpp
@@ -1145,10 +1145,9 @@ static unsigned handleMipsTlsRelocation(RelType type, Symbol &sym,
// symbol in TLS block.
//
// Returns the number of relocations processed.
-template <class ELFT>
-static unsigned
-handleTlsRelocation(RelType type, Symbol &sym, InputSectionBase &c,
- typename ELFT::uint offset, int64_t addend, RelExpr expr) {
+static unsigned handleTlsRelocation(RelType type, Symbol &sym,
+ InputSectionBase &c, uint64_t offset,
+ int64_t addend, RelExpr expr) {
if (!sym.isTls())
return 0;
@@ -1354,8 +1353,8 @@ static void scanReloc(InputSectionBase &sec, OffsetGetter &getOffset, RelTy *&i,
getLocation(sec, sym, offset));
return;
}
- } else if (unsigned processed = handleTlsRelocation<ELFT>(
- type, sym, sec, offset, addend, expr)) {
+ } else if (unsigned processed =
+ handleTlsRelocation(type, sym, sec, offset, addend, expr)) {
i += (processed - 1);
return;
}
More information about the llvm-commits
mailing list