--discard-locals should be --discard-all here.
authorDavide Italiano <davide@freebsd.org>
Mon, 20 Apr 2015 22:54:50 +0000 (22:54 +0000)
committerDavide Italiano <davide@freebsd.org>
Mon, 20 Apr 2015 22:54:50 +0000 (22:54 +0000)
Sorry for the mistake/confusion.

llvm-svn: 235359

lld/lib/ReaderWriter/ELF/SectionChunks.cpp

index ea3f8c2..76690f0 100644 (file)
@@ -484,7 +484,7 @@ void SymbolTable<ELFT>::addSymbol(const Atom *atom, int32_t sectionIndex,
   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;