From: Davide Italiano Date: Mon, 20 Apr 2015 22:54:50 +0000 (+0000) Subject: --discard-locals should be --discard-all here. X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=037cfdd1db5dd1d250ee0c365ab2e39f6e331e94;p=platform%2Fupstream%2Fllvm.git --discard-locals should be --discard-all here. Sorry for the mistake/confusion. llvm-svn: 235359 --- 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;