diff options
-rw-r--r-- | lld/ELF/OutputSections.cpp | 10 | ||||
-rw-r--r-- | lld/ELF/OutputSections.h | 1 |
2 files changed, 5 insertions, 6 deletions
diff --git a/lld/ELF/OutputSections.cpp b/lld/ELF/OutputSections.cpp index be31e652442..190d5543f12 100644 --- a/lld/ELF/OutputSections.cpp +++ b/lld/ELF/OutputSections.cpp @@ -408,6 +408,11 @@ void GnuHashTableSection<ELFT>::writeHashTable(uint8_t *Buf) { Values[I - 1] |= 1; } +static bool includeInGnuHashTable(SymbolBody *B) { + // Assume that includeInDynamicSymtab() is already checked. + return !B->isUndefined(); +} + template <class ELFT> void GnuHashTableSection<ELFT>::addSymbols(std::vector<SymbolBody *> &Symbols) { std::vector<SymbolBody *> NotHashed; @@ -860,11 +865,6 @@ bool lld::elf2::includeInDynamicSymtab(const SymbolBody &B) { return B.isUsedInDynamicReloc(); } -bool lld::elf2::includeInGnuHashTable(SymbolBody *B) { - // Assume that includeInDynamicSymtab() is already checked. - return !B->isUndefined(); -} - template <class ELFT> bool lld::elf2::shouldKeepInSymtab(const ObjectFile<ELFT> &File, StringRef SymName, diff --git a/lld/ELF/OutputSections.h b/lld/ELF/OutputSections.h index 45e3eff6426..5b3953e91af 100644 --- a/lld/ELF/OutputSections.h +++ b/lld/ELF/OutputSections.h @@ -57,7 +57,6 @@ bool canBePreempted(const SymbolBody *Body, bool NeedsGot); template <class ELFT> bool includeInSymtab(const SymbolBody &B); bool includeInDynamicSymtab(const SymbolBody &B); -bool includeInGnuHashTable(SymbolBody *B); template <class ELFT> bool shouldKeepInSymtab( |