This is an archive of the discontinued LLVM Phabricator instance.

Promote nameless lambda used by dl_iterate_phdr to named function.
ClosedPublic

Authored by saugustine on Mar 4 2020, 12:44 PM.

Details

Summary

This cleans up control flow inside findUnwindSections, and will make
it easier to replace this code in a following patch. Also, expose the
data structure to allow use by a future replacment function.

Diff Detail

Event Timeline

saugustine created this revision.Mar 4 2020, 12:44 PM
Herald added a project: Restricted Project. · View Herald TranscriptMar 4 2020, 12:44 PM
mstorsjo accepted this revision.Mar 4 2020, 1:39 PM

LGTM (but I didn't have the possibility to test it right now, but it seems right).

This revision is now accepted and ready to land.Mar 4 2020, 1:39 PM

Got to test this now as well, and it works fine for windows at least. Thanks!

miyuki accepted this revision.Mar 5 2020, 9:15 AM
This revision was automatically updated to reflect the committed changes.