From 037cfdd1db5dd1d250ee0c365ab2e39f6e331e94 Mon Sep 17 00:00:00 2001 From: Davide Italiano Date: Mon, 20 Apr 2015 22:54:50 +0000 Subject: [PATCH] --discard-locals should be --discard-all here. Sorry for the mistake/confusion. llvm-svn: 235359 --- lld/lib/ReaderWriter/ELF/SectionChunks.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lld/lib/ReaderWriter/ELF/SectionChunks.cpp b/lld/lib/ReaderWriter/ELF/SectionChunks.cpp index ea3f8c2..76690f0 100644 --- a/lld/lib/ReaderWriter/ELF/SectionChunks.cpp +++ b/lld/lib/ReaderWriter/ELF/SectionChunks.cpp @@ -484,7 +484,7 @@ void SymbolTable::addSymbol(const Atom *atom, int32_t sectionIndex, else addUndefinedAtom(symbol, dyn_cast(atom)); - // If --discard-local is on, don't add to the symbol table + // If --discard-all is on, don't add to the symbol table // symbols with local binding. if (this->_ctx.discardLocals() && symbol.getBinding() == llvm::ELF::STB_LOCAL) return; -- 2.7.4