aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2018-09-29 14:12:03 +0000
committerDimitry Andric <dim@FreeBSD.org>2018-09-29 14:12:03 +0000
commitd07b9c7a7d5e4ad21a1ee78624561c0f1ea49ed4 (patch)
tree995e040f38a9aa8c3bb2129eebdaf41e781bbeae
parent1687b1ab24cff6f73fb79b815156691459d08400 (diff)
Notes
-rw-r--r--contrib/llvm/tools/lld/ELF/Writer.cpp2
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.