[lld] r263398 - Simplify. NFC.
Rui Ueyama via llvm-commits
llvm-commits at lists.llvm.org
Sun Mar 13 15:08:11 PDT 2016
Author: ruiu
Date: Sun Mar 13 17:08:11 2016
New Revision: 263398
URL: http://llvm.org/viewvc/llvm-project?rev=263398&view=rev
Log:
Simplify. NFC.
Modified:
lld/trunk/ELF/Writer.cpp
Modified: lld/trunk/ELF/Writer.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/Writer.cpp?rev=263398&r1=263397&r2=263398&view=diff
==============================================================================
--- lld/trunk/ELF/Writer.cpp (original)
+++ lld/trunk/ELF/Writer.cpp Sun Mar 13 17:08:11 2016
@@ -559,11 +559,9 @@ template <class ELFT> void Writer<ELFT>:
StringRef SymName = check(Sym.getName(F->getStringTable()));
if (!shouldKeepInSymtab<ELFT>(*F, SymName, Sym))
continue;
- if (Sym.st_shndx != SHN_ABS) {
- InputSectionBase<ELFT> *Section = F->getSection(Sym);
- if (!Section->Live)
+ if (Sym.st_shndx != SHN_ABS)
+ if (!F->getSection(Sym)->Live)
continue;
- }
++Out<ELFT>::SymTab->NumLocals;
if (Config->Relocatable)
B->DynsymIndex = Out<ELFT>::SymTab->NumLocals;
More information about the llvm-commits
mailing list