[lld] r266391 - Delete a dead repl.
Rafael Espindola via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 14 17:15:02 PDT 2016
Author: rafael
Date: Thu Apr 14 19:15:02 2016
New Revision: 266391
URL: http://llvm.org/viewvc/llvm-project?rev=266391&view=rev
Log:
Delete a dead repl.
It is only ever used on symbols taken from the symbol table.
Modified:
lld/trunk/ELF/OutputSections.cpp
Modified: lld/trunk/ELF/OutputSections.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/OutputSections.cpp?rev=266391&r1=266390&r2=266391&view=diff
==============================================================================
--- lld/trunk/ELF/OutputSections.cpp (original)
+++ lld/trunk/ELF/OutputSections.cpp Thu Apr 14 19:15:02 2016
@@ -1487,7 +1487,7 @@ SymbolTableSection<ELFT>::getOutputSecti
case SymbolBody::DefinedSyntheticKind:
return &cast<DefinedSynthetic<ELFT>>(Sym)->Section;
case SymbolBody::DefinedRegularKind: {
- auto &D = cast<DefinedRegular<ELFT>>(Sym->repl());
+ auto &D = cast<DefinedRegular<ELFT>>(*Sym);
if (D.Section)
return D.Section->OutSec;
break;
More information about the llvm-commits
mailing list