[libcxx-commits] [libcxxabi] [libunwind] [llvm] [WebAssembly] Directly call EH personality function (PR #175202)
Demetrius Kanios via libcxx-commits
libcxx-commits at lists.llvm.org
Wed Jul 1 01:22:01 PDT 2026
QuantumSegfault wrote:
> Are you planning to submit patches for this?
I'd be fine with doing the PR, once we figure out the direction (i.e. like this PR was not satisfactory)
> Given that _Unwind_CallPersonality is mostly a wrapper from our libunwind, making it a personality function within the bitcode signature seems a little awkward though. As I said the benefit of having it is we can save some instructions per catch site.
Which is why I'm saying why not merge `_Unwind_CallPersonality` down into `__gxx_wasm_personality_v0`. Make it so personality functions on Wasm take a single pointer to the EH object, and are expected to initialize the landing pad context. We keep the small code size, at the cost of breaking/changing the ABI?
https://github.com/llvm/llvm-project/pull/175202
More information about the libcxx-commits
mailing list