[lld] r257081 - Remove useless local variable.
Rui Ueyama via llvm-commits
llvm-commits at lists.llvm.org
Thu Jan 7 10:20:02 PST 2016
Author: ruiu
Date: Thu Jan 7 12:20:02 2016
New Revision: 257081
URL: http://llvm.org/viewvc/llvm-project?rev=257081&view=rev
Log:
Remove useless local variable.
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=257081&r1=257080&r2=257081&view=diff
==============================================================================
--- lld/trunk/ELF/OutputSections.cpp (original)
+++ lld/trunk/ELF/OutputSections.cpp Thu Jan 7 12:20:02 2016
@@ -1236,11 +1236,8 @@ SymbolTableSection<ELFT>::SymbolTableSec
StrTabSec.isDynamic() ? SHT_DYNSYM : SHT_SYMTAB,
StrTabSec.isDynamic() ? SHF_ALLOC : 0),
Table(Table), StrTabSec(StrTabSec) {
- typedef OutputSectionBase<ELFT> Base;
- typename Base::Elf_Shdr &Header = this->Header;
-
- Header.sh_entsize = sizeof(Elf_Sym);
- Header.sh_addralign = ELFT::Is64Bits ? 8 : 4;
+ this->Header.sh_entsize = sizeof(Elf_Sym);
+ this->Header.sh_addralign = ELFT::Is64Bits ? 8 : 4;
}
// Orders symbols according to their positions in the GOT,
More information about the llvm-commits
mailing list