aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRui Ueyama <ruiu@google.com>2016-01-07 18:20:02 +0000
committerRui Ueyama <ruiu@google.com>2016-01-07 18:20:02 +0000
commit5599c464f903296b6499874b4d65511bc64edf00 (patch)
tree0618d82b89d3340189ecc93ea9e1b35a2bd40e57
parentf5fda324a28c6b773a08d596d8caec92472ded8c (diff)
Remove useless local variable.
git-svn-id: https://llvm.org/svn/llvm-project/lld/trunk@257081 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--ELF/OutputSections.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/ELF/OutputSections.cpp b/ELF/OutputSections.cpp
index 8100ca130..2322844a0 100644
--- a/ELF/OutputSections.cpp
+++ b/ELF/OutputSections.cpp
@@ -1236,11 +1236,8 @@ SymbolTableSection<ELFT>::SymbolTableSection(
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,