From: Rui Ueyama Date: Tue, 9 Aug 2016 01:35:39 +0000 (+0000) Subject: Remove redundant local variable. X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=210ef7fbd4b489554a3e0ba1ac54b540b708d7c4;p=platform%2Fupstream%2Fllvm.git Remove redundant local variable. llvm-svn: 278085 --- diff --git a/lld/ELF/Writer.cpp b/lld/ELF/Writer.cpp index 8f316f7..efb29e4 100644 --- a/lld/ELF/Writer.cpp +++ b/lld/ELF/Writer.cpp @@ -662,9 +662,6 @@ template void Writer::createSections() { // Create output section objects and add them to OutputSections. template void Writer::finalizeSections() { - // Create output sections for input object file sections. - std::vector *> RegularSections = OutputSections; - Out::Dynamic->PreInitArraySec = findSection(".preinit_array"); Out::Dynamic->InitArraySec = findSection(".init_array"); Out::Dynamic->FiniArraySec = findSection(".fini_array"); @@ -680,7 +677,7 @@ template void Writer::finalizeSections() { // addresses of each section by section name. Add such symbols. if (!Config->Relocatable) { addStartEndSymbols(); - for (OutputSectionBase *Sec : RegularSections) + for (OutputSectionBase *Sec : OutputSections) addStartStopSymbols(Sec); }