[elf2] Fix style.

llvm-svn: 249450
This commit is contained in:
Michael J. Spencer 2015-10-06 19:57:05 +00:00
parent ee8c53bbe2
commit fcacad263a
1 changed files with 7 additions and 7 deletions

View File

@ -329,7 +329,7 @@ template <class ELFT> void Writer<ELFT>::createSections() {
DynamicSec.FiniArraySec =
Map.lookup({".fini_array", SHT_FINI_ARRAY, SHF_WRITE | SHF_ALLOC});
auto addStartEnd = [&Symtab](StringRef Start, StringRef End,
auto AddStartEnd = [&Symtab](StringRef Start, StringRef End,
OutputSection<ELFT> *OS) {
if (OS) {
Symtab.addSyntheticSym<ELFT>(Start, *OS, 0);
@ -340,12 +340,12 @@ template <class ELFT> void Writer<ELFT>::createSections() {
}
};
addStartEnd("__preinit_array_start", "__preinit_array_end",
DynamicSec.PreInitArraySec);
addStartEnd("__init_array_start", "__init_array_end",
DynamicSec.InitArraySec);
addStartEnd("__fini_array_start", "__fini_array_end",
DynamicSec.FiniArraySec);
AddStartEnd("__preinit_array_start", "__preinit_array_end",
DynamicSec.PreInitArraySec);
AddStartEnd("__init_array_start", "__init_array_end",
DynamicSec.InitArraySec);
AddStartEnd("__fini_array_start", "__fini_array_end",
DynamicSec.FiniArraySec);
// FIXME: Try to avoid the extra walk over all global symbols.
std::vector<DefinedCommon<ELFT> *> CommonSymbols;