OSDN Git Service

Split findUnwindSectionsByPhdr into target-specific functions.
authorSterling Augustine <saugustine@google.com>
Thu, 5 Mar 2020 19:50:51 +0000 (11:50 -0800)
committerSterling Augustine <saugustine@google.com>
Fri, 6 Mar 2020 21:28:09 +0000 (13:28 -0800)
commiteb755df5c27f5687a4f43a62e7eb0713c3f8f030
tree8e36ea53c5fa10ece8c71bfd5baee8f0b700f2b3
parentf0f4d41631a9018865376fd0041bf9b995b32a78
Split findUnwindSectionsByPhdr into target-specific functions.

Summary:
This further cleans up the control flow and makes it easier to
optimize and replace portions in a subsequent patch.

This should be NFC, but given the amount of #ifdeffing here,
it may not be. So will watch the buildbots closely.

Also, as this is purely moving existing code around, I plan to
ignore the lint errors.

Reviewers: compnerd, miyuki, mstorsjo

Subscribers: libcxx-commits

Tags: #libc

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