[lld] r247613 - Use C++11 member initializers. NFC.
Rafael EspĂndola via llvm-commits
llvm-commits at lists.llvm.org
Mon Sep 14 16:25:58 PDT 2015
Thanks!
On 14 September 2015 at 16:32, Rui Ueyama via llvm-commits
<llvm-commits at lists.llvm.org> wrote:
> 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;
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits
More information about the llvm-commits
mailing list