[lld] r235359 - --discard-locals should be --discard-all here.

Davide Italiano davide at freebsd.org
Mon Apr 20 15:54:50 PDT 2015


Author: davide
Date: Mon Apr 20 17:54:50 2015
New Revision: 235359

URL: http://llvm.org/viewvc/llvm-project?rev=235359&view=rev
Log:
--discard-locals should be --discard-all here.

Sorry for the mistake/confusion.

Modified:
    lld/trunk/lib/ReaderWriter/ELF/SectionChunks.cpp

Modified: lld/trunk/lib/ReaderWriter/ELF/SectionChunks.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/lib/ReaderWriter/ELF/SectionChunks.cpp?rev=235359&r1=235358&r2=235359&view=diff
==============================================================================
--- lld/trunk/lib/ReaderWriter/ELF/SectionChunks.cpp (original)
+++ lld/trunk/lib/ReaderWriter/ELF/SectionChunks.cpp Mon Apr 20 17:54:50 2015
@@ -484,7 +484,7 @@ void SymbolTable<ELFT>::addSymbol(const
   else
     addUndefinedAtom(symbol, dyn_cast<UndefinedAtom>(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;





More information about the llvm-commits mailing list