forked from OSchip/llvm-project
[ELF] De-template createBitcodeSymbol. NFC
This commit is contained in:
parent
66f8819c50
commit
dc55ab3840
|
@ -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())
|
||||
|
|
Loading…
Reference in New Issue