[lld] [LLD, MachO] Add `getUnwindInfoEncodingHash` to `BPSectionOrderer.cpp`. (PR #105587)
Ellis Hoag via llvm-commits
llvm-commits at lists.llvm.org
Wed Aug 21 14:39:16 PDT 2024
================
@@ -34,6 +34,17 @@ class UnwindInfoSection : public SyntheticSection {
UnwindInfoSection *makeUnwindInfoSection();
+// LLD's internal representation of a compact unwind entry.
+struct CompactUnwindEntry {
+ uint64_t functionAddress;
+ uint32_t functionLength;
+ compact_unwind_encoding_t encoding;
+ Symbol *personality;
+ InputSection *lsda;
+
+ void relocateOneCompactUnwindEntry(const Defined *d);
----------------
ellishg wrote:
I wish this function could return `std::optional<CompactUnwindEntry>`, but it looks like we need to set `functionAddress` even if there is no unwind entry (I wonder if this really is required).
At the very least, can you add a comment explaining what this function does?
https://github.com/llvm/llvm-project/pull/105587
More information about the llvm-commits
mailing list