diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2018-09-29 14:12:03 +0000 |
|---|---|---|
| committer | Dimitry Andric <dim@FreeBSD.org> | 2018-09-29 14:12:03 +0000 |
| commit | d07b9c7a7d5e4ad21a1ee78624561c0f1ea49ed4 (patch) | |
| tree | 995e040f38a9aa8c3bb2129eebdaf41e781bbeae | |
| parent | 1687b1ab24cff6f73fb79b815156691459d08400 (diff) | |
Notes
| -rw-r--r-- | contrib/llvm/tools/lld/ELF/Writer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/llvm/tools/lld/ELF/Writer.cpp b/contrib/llvm/tools/lld/ELF/Writer.cpp index 40834a3e95221..71daf1d2a6eb3 100644 --- a/contrib/llvm/tools/lld/ELF/Writer.cpp +++ b/contrib/llvm/tools/lld/ELF/Writer.cpp @@ -487,7 +487,7 @@ template <class ELFT> void Writer<ELFT>::run() { static bool shouldKeepInSymtab(SectionBase *Sec, StringRef SymName, const Symbol &B) { - if (B.isFile() || B.isSection()) + if (B.isSection()) return false; // If sym references a section in a discarded group, don't keep it. |
