[lld] dc55ab3 - [ELF] De-template createBitcodeSymbol. NFC
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Tue Aug 9 21:43:40 PDT 2022
Author: Fangrui Song
Date: 2022-08-09T21:43:36-07:00
New Revision: dc55ab3840fbcb39c2120e06510aa47ff1d7f13c
URL: https://github.com/llvm/llvm-project/commit/dc55ab3840fbcb39c2120e06510aa47ff1d7f13c
DIFF: https://github.com/llvm/llvm-project/commit/dc55ab3840fbcb39c2120e06510aa47ff1d7f13c.diff
LOG: [ELF] De-template createBitcodeSymbol. NFC
Added:
Modified:
lld/ELF/InputFiles.cpp
Removed:
################################################################################
diff --git a/lld/ELF/InputFiles.cpp b/lld/ELF/InputFiles.cpp
index a2f95238b12a4..81d910bfda272 100644
--- a/lld/ELF/InputFiles.cpp
+++ b/lld/ELF/InputFiles.cpp
@@ -1632,7 +1632,6 @@ static uint8_t mapVisibility(GlobalValue::VisibilityTypes gvVisibility) {
llvm_unreachable("unknown visibility");
}
-template <class ELFT>
static void
createBitcodeSymbol(Symbol *&sym, const std::vector<bool> &keptComdats,
const lto::InputFile::Symbol &objSym, BitcodeFile &f) {
@@ -1677,12 +1676,12 @@ template <class ELFT> void BitcodeFile::parse() {
for (auto it : llvm::enumerate(obj->symbols()))
if (!it.value().isUndefined()) {
Symbol *&sym = symbols[it.index()];
- createBitcodeSymbol<ELFT>(sym, keptComdats, it.value(), *this);
+ createBitcodeSymbol(sym, keptComdats, it.value(), *this);
}
for (auto it : llvm::enumerate(obj->symbols()))
if (it.value().isUndefined()) {
Symbol *&sym = symbols[it.index()];
- createBitcodeSymbol<ELFT>(sym, keptComdats, it.value(), *this);
+ createBitcodeSymbol(sym, keptComdats, it.value(), *this);
}
for (auto l : obj->getDependentLibraries())
More information about the llvm-commits
mailing list