Promote nameless lambda used by dl_iterate_phdr to named function.
authorSterling Augustine <saugustine@google.com>
Wed, 4 Mar 2020 20:41:54 +0000 (12:41 -0800)
committerSterling Augustine <saugustine@google.com>
Thu, 5 Mar 2020 16:55:22 +0000 (08:55 -0800)
commit470f995a517f5dbb53b1f5cd87ca3c9be0b32d79
tree29e8be9fc0e8e4e9db439fb213fe81c5e5a7ff98
parentc7b6fa8f4b860b251e6fc5956955583b8b2a9c33
Promote nameless lambda used by dl_iterate_phdr to named function.

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.

Reviewers: mstorsjo, miyuki

Subscribers: krytarowski, libcxx-commits

Tags: #libc

Differential Revision: https://reviews.llvm.org/D75637
libunwind/src/AddressSpace.hpp