[libcxx-commits] [PATCH] D86805: [lld-macho] create __TEXT, __unwind_info from __LD, __compact_unwind

Greg McGary via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Wed Sep 2 15:18:51 PDT 2020


gkm updated this revision to Diff 289583.
gkm added a comment.

`lld/MachO/UnwindInfo.cpp`:

- Remove redundant `unwind_info_section_header_lsda_entry`, and use existing `unwind_info_section_header_lsda_index_entry` instead.
- Don't cache `UnwindInfoSection::isNeeded()` result since it is only called once.

`lld/test/MachO/tools/generate-cfi-funcs.py`:

- Permute the register save set in order to generate a larger variety of encodings.
- Align generated functions at larger boundary so it works for testing ld64 also.

`lld/test/MachO/tools/validate-unwind-info.py`

- Expand the object-file encoding regexp to capture optional personality+lsda


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D86805/new/

https://reviews.llvm.org/D86805

Files:
  libunwind/include/mach-o/compact_unwind_encoding.h
  lld/MachO/CMakeLists.txt
  lld/MachO/OutputSegment.cpp
  lld/MachO/OutputSegment.h
  lld/MachO/SyntheticSections.h
  lld/MachO/UnwindInfo.cpp
  lld/MachO/UnwindInfo.h
  lld/MachO/Writer.cpp
  lld/test/MachO/compact-unwind.test
  lld/test/MachO/tools/generate-cfi-funcs.py
  lld/test/MachO/tools/validate-unwind-info.py

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D86805.289583.patch
Type: text/x-patch
Size: 31724 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20200902/d68e9a28/attachment-0001.bin>


More information about the libcxx-commits mailing list