[ELF] Narrow down the type of OutputSection::_sections container
authorSimon Atanasyan <simon@atanasyan.com>
Tue, 21 Apr 2015 17:02:42 +0000 (17:02 +0000)
committerSimon Atanasyan <simon@atanasyan.com>
Tue, 21 Apr 2015 17:02:42 +0000 (17:02 +0000)
commit72026b013bde69933b2d782e51c689aa1421ebac
tree947e4c5f56fd6942e158313b7b243a9234810bb4
parentfcb19e19d0412f7986d158578b13d11858cf253c
[ELF] Narrow down the type of OutputSection::_sections container

The `OutputSection::appendSection()` method always gets a pointer
to the `Section` class descendants. So it is not necessary to keep them
in the vector of `Chunk` pointers.

No functional changes.

llvm-svn: 235392
lld/lib/ReaderWriter/ELF/SectionChunks.cpp
lld/lib/ReaderWriter/ELF/SectionChunks.h
lld/lib/ReaderWriter/ELF/TargetLayout.cpp