Split LinkerScript::createSections into small functions.
authorRui Ueyama <ruiu@google.com>
Mon, 25 Jul 2016 22:51:07 +0000 (22:51 +0000)
committerRui Ueyama <ruiu@google.com>
Mon, 25 Jul 2016 22:51:07 +0000 (22:51 +0000)
commit6b2748104bbb34fcb245edd3f3a51494038e0441
treec0911100340a3166f899c056cba89e5eec91bfd5
parent63dc650938571b42963d9878b64018c9fbea3573
Split LinkerScript::createSections into small functions.

createSections function is getting longer, so it is time to split it
into small functions. The reason why the function is long is because
it has deeply nested for-loops. This patch constructs temporary data
to reduce nesting level.

Differential Revision: https://reviews.llvm.org/D22786

llvm-svn: 276706
lld/ELF/LinkerScript.cpp
lld/ELF/LinkerScript.h