[ELF] - Refactor of LinkerScript<ELFT>::getPhdrIndicesForSection
authorGeorge Rimar <grimar@accesssoftek.com>
Wed, 20 Jul 2016 16:43:03 +0000 (16:43 +0000)
committerGeorge Rimar <grimar@accesssoftek.com>
Wed, 20 Jul 2016 16:43:03 +0000 (16:43 +0000)
commit31d842f55f8f9911ababfcedfa71535a9530661f
tree33f022e3ab652aa4d227ef44c9c0eb8da633c4d9
parentdb80c0c77f5347b6f0126b0bb98ed20a39516fd0
[ELF] - Refactor of LinkerScript<ELFT>::getPhdrIndicesForSection

Previously it was harder to read and also has a error:
command kind was not checked.

Differential revision: https://reviews.llvm.org/D22574

llvm-svn: 276137
lld/ELF/LinkerScript.cpp