[lld/mac] Copy some of the commit message of d5a70db193 into a comment

This commit is contained in:
Nico Weber 2021-05-08 13:03:17 -04:00
parent 2054474640
commit 7b6dd265ce
1 changed files with 3 additions and 0 deletions

View File

@ -306,6 +306,9 @@ template <class Ptr> void UnwindInfoSectionImpl<Ptr>::finalize() {
// Dead-stripped functions get a functionAddress of UINT64_MAX in
// relocateCompactUnwind(). Filter them out here.
// FIXME: This doesn't yet collect associated data like LSDAs kept
// alive only by a now-removed CompactUnwindEntry or other comdat-like
// data (`kindNoneGroupSubordinate*` in ld64).
CompactUnwindEntry<Ptr> tombstone;
tombstone.functionAddress = static_cast<Ptr>(UINT64_MAX);
cuPtrVector.erase(