Simplify LinkerScript<ELFT>::createSections.
authorRui Ueyama <ruiu@google.com>
Fri, 12 Aug 2016 03:31:09 +0000 (03:31 +0000)
committerRui Ueyama <ruiu@google.com>
Fri, 12 Aug 2016 03:31:09 +0000 (03:31 +0000)
commit0c70d3ccb7ad72a25ac64708efefa4f14f1246cc
tree97d9774b8b380ad15825c1bc0e818f96127ac3dc
parentea0237205990c6652929331cf07702add46f377d
Simplify LinkerScript<ELFT>::createSections.

Previously, we were setting LayoutInputSection's OutputSection member
in createSections. Because when we create LayoutInputSectinos, we
don't know the output section for them, so we backfilled the member
in the function. This patch moves the code to backfill it to assignOffsets.

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