diff options
| author | George Rimar <grimar@accesssoftek.com> | 2016-06-08 12:57:14 +0000 |
|---|---|---|
| committer | George Rimar <grimar@accesssoftek.com> | 2016-06-08 12:57:14 +0000 |
| commit | 71a0a40b970c5bc8363989bde65ebcb2a3759e82 (patch) | |
| tree | 97b2e468273d1d8c455602e0385fabeaeca708c5 | |
| parent | 6d0632f78fb0e438e8eb82845d5636005414cabd (diff) | |
| download | bcm5719-llvm-71a0a40b970c5bc8363989bde65ebcb2a3759e82.tar.gz bcm5719-llvm-71a0a40b970c5bc8363989bde65ebcb2a3759e82.zip | |
[ELF] - Removed includeInGnuHashTable() function. NFC.
It was one line global static function that looks nicer to inline,
patch do that.
llvm-svn: 272137
| -rw-r--r-- | lld/ELF/OutputSections.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/lld/ELF/OutputSections.cpp b/lld/ELF/OutputSections.cpp index f14195af0b1..8998968d8c9 100644 --- a/lld/ELF/OutputSections.cpp +++ b/lld/ELF/OutputSections.cpp @@ -531,11 +531,6 @@ void GnuHashTableSection<ELFT>::writeHashTable(uint8_t *Buf) { Values[I - 1] |= 1; } -static bool includeInGnuHashTable(SymbolBody *B) { - // Assume that includeInDynsym() is already checked. - return !B->isUndefined(); -} - // Add symbols to this symbol hash table. Note that this function // destructively sort a given vector -- which is needed because // GNU-style hash table places some sorting requirements. @@ -544,7 +539,7 @@ void GnuHashTableSection<ELFT>::addSymbols( std::vector<std::pair<SymbolBody *, size_t>> &V) { auto Mid = std::stable_partition(V.begin(), V.end(), [](std::pair<SymbolBody *, size_t> &P) { - return !includeInGnuHashTable(P.first); + return P.first->isUndefined(); }); if (Mid == V.end()) return; |

