[lld] r247613 - Use C++11 member initializers. NFC.
Rui Ueyama via llvm-commits
llvm-commits at lists.llvm.org
Mon Sep 14 13:32:41 PDT 2015
Author: ruiu
Date: Mon Sep 14 15:32:41 2015
New Revision: 247613
URL: http://llvm.org/viewvc/llvm-project?rev=247613&view=rev
Log:
Use C++11 member initializers. 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=247613&r1=247612&r2=247613&view=diff
==============================================================================
--- lld/trunk/ELF/Writer.cpp (original)
+++ lld/trunk/ELF/Writer.cpp Mon Sep 14 15:32:41 2015
@@ -314,9 +314,8 @@ public:
typedef typename ELFFile<ELFT>::Elf_Phdr Elf_Phdr;
typedef typename ELFFile<ELFT>::Elf_Sym Elf_Sym;
Writer(SymbolTable *T)
- : StrTabSec(false), DynStrSec(true), SymTabSec(*this, *T, StrTabSec),
- DynSymSec(*this, *T, DynStrSec), DynamicSec(*T, DynSymSec),
- HashSec(DynSymSec) {}
+ : SymTabSec(*this, *T, StrTabSec), DynSymSec(*this, *T, DynStrSec),
+ DynamicSec(*T, DynSymSec), HashSec(DynSymSec) {}
void run();
const OutputSection<ELFT> &getBSS() const {
@@ -349,8 +348,8 @@ private:
uintX_t SectionHeaderOff;
unsigned NumPhdrs;
- StringTableSection<ELFT::Is64Bits> StrTabSec;
- StringTableSection<ELFT::Is64Bits> DynStrSec;
+ StringTableSection<ELFT::Is64Bits> StrTabSec = { /*dynamic=*/false };
+ StringTableSection<ELFT::Is64Bits> DynStrSec = { /*dynamic=*/true };
SymbolTableSection<ELFT> SymTabSec;
SymbolTableSection<ELFT> DynSymSec;
More information about the llvm-commits
mailing list