[ELF] De-template createBitcodeSymbol. NFC

This commit is contained in:
Fangrui Song 2022-08-09 21:43:35 -07:00
parent 66f8819c50
commit dc55ab3840
1 changed files with 2 additions and 3 deletions

View File

@ -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())