Remove redundant local variable.

llvm-svn: 278085
This commit is contained in:
Rui Ueyama 2016-08-09 01:35:39 +00:00
parent 30634d9b4f
commit 210ef7fbd4
1 changed files with 1 additions and 4 deletions

View File

@ -662,9 +662,6 @@ template <class ELFT> void Writer<ELFT>::createSections() {
// Create output section objects and add them to OutputSections.
template <class ELFT> void Writer<ELFT>::finalizeSections() {
// Create output sections for input object file sections.
std::vector<OutputSectionBase<ELFT> *> RegularSections = OutputSections;
Out<ELFT>::Dynamic->PreInitArraySec = findSection(".preinit_array");
Out<ELFT>::Dynamic->InitArraySec = findSection(".init_array");
Out<ELFT>::Dynamic->FiniArraySec = findSection(".fini_array");
@ -680,7 +677,7 @@ template <class ELFT> void Writer<ELFT>::finalizeSections() {
// addresses of each section by section name. Add such symbols.
if (!Config->Relocatable) {
addStartEndSymbols();
for (OutputSectionBase<ELFT> *Sec : RegularSections)
for (OutputSectionBase<ELFT> *Sec : OutputSections)
addStartStopSymbols(Sec);
}