[ELF] - Remove excessive loop in LinkerScript<ELFT>::assignAddresses()
authorGeorge Rimar <grimar@accesssoftek.com>
Fri, 12 Aug 2016 19:32:45 +0000 (19:32 +0000)
committerGeorge Rimar <grimar@accesssoftek.com>
Fri, 12 Aug 2016 19:32:45 +0000 (19:32 +0000)
commitb6c52e8dfac5717f89c7a16a102331937c2dbe26
tree0ff576a76018e79241e3ac2f7449c28c67fa0d86
parent1512f9a0f96f2795ca497099d3d39ed30cdaea33
[ELF] - Remove excessive loop in LinkerScript<ELFT>::assignAddresses()

After 278461 "Create only one section for a name in LinkerScript."
this loop is excessive.
Patch also reorders code slightly to use early return.

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

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