From dc55ab3840fbcb39c2120e06510aa47ff1d7f13c Mon Sep 17 00:00:00 2001 From: Fangrui Song Date: Tue, 9 Aug 2022 21:43:35 -0700 Subject: [PATCH] [ELF] De-template createBitcodeSymbol. NFC --- lld/ELF/InputFiles.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lld/ELF/InputFiles.cpp b/lld/ELF/InputFiles.cpp index a2f95238b12a..81d910bfda27 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 static void createBitcodeSymbol(Symbol *&sym, const std::vector &keptComdats, const lto::InputFile::Symbol &objSym, BitcodeFile &f) { @@ -1677,12 +1676,12 @@ template void BitcodeFile::parse() { for (auto it : llvm::enumerate(obj->symbols())) if (!it.value().isUndefined()) { Symbol *&sym = symbols[it.index()]; - createBitcodeSymbol(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(sym, keptComdats, it.value(), *this); + createBitcodeSymbol(sym, keptComdats, it.value(), *this); } for (auto l : obj->getDependentLibraries())