mirror of
https://github.com/intel/llvm.git
synced 2026-01-27 14:50:42 +08:00
Inline a small function.
llvm-svn: 314841
This commit is contained in:
@@ -1041,7 +1041,8 @@ template <class ELFT> void LinkerDriver::link(opt::InputArgList &Args) {
|
||||
return;
|
||||
|
||||
// Handle the `--undefined <sym>` options.
|
||||
Symtab->scanUndefinedFlags<ELFT>();
|
||||
for (StringRef S : Config->Undefined)
|
||||
Symtab->fetchIfLazy<ELFT>(S);
|
||||
|
||||
// Handle undefined symbols in DSOs.
|
||||
Symtab->scanShlibUndefined<ELFT>();
|
||||
|
||||
@@ -593,12 +593,6 @@ template <class ELFT> void SymbolTable::fetchIfLazy(StringRef Name) {
|
||||
}
|
||||
}
|
||||
|
||||
// Process undefined (-u) flags by loading lazy symbols named by those flags.
|
||||
template <class ELFT> void SymbolTable::scanUndefinedFlags() {
|
||||
for (StringRef S : Config->Undefined)
|
||||
fetchIfLazy<ELFT>(S);
|
||||
}
|
||||
|
||||
// This function takes care of the case in which shared libraries depend on
|
||||
// the user program (not the other way, which is usual). Shared libraries
|
||||
// may have undefined symbols, expecting that the user program provides
|
||||
@@ -884,11 +878,6 @@ template void SymbolTable::fetchIfLazy<ELF32BE>(StringRef);
|
||||
template void SymbolTable::fetchIfLazy<ELF64LE>(StringRef);
|
||||
template void SymbolTable::fetchIfLazy<ELF64BE>(StringRef);
|
||||
|
||||
template void SymbolTable::scanUndefinedFlags<ELF32LE>();
|
||||
template void SymbolTable::scanUndefinedFlags<ELF32BE>();
|
||||
template void SymbolTable::scanUndefinedFlags<ELF64LE>();
|
||||
template void SymbolTable::scanUndefinedFlags<ELF64BE>();
|
||||
|
||||
template void SymbolTable::scanShlibUndefined<ELF32LE>();
|
||||
template void SymbolTable::scanShlibUndefined<ELF32BE>();
|
||||
template void SymbolTable::scanShlibUndefined<ELF64LE>();
|
||||
|
||||
@@ -85,7 +85,6 @@ public:
|
||||
InputFile *File);
|
||||
|
||||
template <class ELFT> void fetchIfLazy(StringRef Name);
|
||||
template <class ELFT> void scanUndefinedFlags();
|
||||
template <class ELFT> void scanShlibUndefined();
|
||||
void scanVersionScript();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user