This is an archive of the discontinued LLVM Phabricator instance.

[LLD][ELF] Refactor CreateThunks to extract the iteration through InputSections.
ClosedPublic

Authored by peter.smith on Jun 2 2017, 8:01 AM.

Details

Summary

In preparation for inserting Thunks into InputSectionDescription::Sections extract the loop that finds InputSections that may have calls that need Thunks. This isn't much benefit now but this will be useful when we have to extract the InputSectionDescriptions::Sections from the Script commands.

This is patch 2 of 3 of converting createThunks() to insert into InputSectionDescriptions.

Diff Detail

Event Timeline

peter.smith created this revision.Jun 2 2017, 8:01 AM
ruiu accepted this revision.Jun 5 2017, 7:35 AM

LGTM

This revision is now accepted and ready to land.Jun 5 2017, 7:35 AM
This revision was automatically updated to reflect the committed changes.