This is an archive of the discontinued LLVM Phabricator instance.

[ELF] - Remove excessive loop in LinkerScript<ELFT>::assignAddresses()
ClosedPublic

Authored by grimar on Aug 12 2016, 3:28 AM.

Details

Summary

After 278461 "Create only one section for a name in LinkerScript."

this loop is excessive. Patch also reorders code slightly to use early return.

Diff Detail

Repository
rL LLVM

Event Timeline

grimar updated this revision to Diff 67815.Aug 12 2016, 3:28 AM
grimar retitled this revision from to [ELF] - Remove excessive loop in LinkerScript<ELFT>::assignAddresses().
grimar updated this object.
grimar added a reviewer: ruiu.
grimar added subscribers: llvm-commits, grimar, davide, evgeny777.
ruiu accepted this revision.Aug 12 2016, 11:12 AM
ruiu edited edge metadata.

LGTM

This revision is now accepted and ready to land.Aug 12 2016, 11:12 AM
This revision was automatically updated to reflect the committed changes.