dschuff wrote:

> I would like to avoid defining two new personality functions for ObjC and 
> ObjCXX on WASM. Can't we just differentiate and emit code based on the target 
> triple?

If objc follows exactly the same ABI and runtime as C++ then maybe it can just 
use the same personality function. I think we do want to support different 
personality functions, but maybe the test is which parts of the runtime code 
they want to share. IIRC we also have a separate personality function for using 
wasm EH for setjmp and longjmp (or maybe that's just a different tag?). I'd 
want to get @aheejin's opinion about the best design for this. But we can 
certainly make this work one way or another.

https://github.com/llvm/llvm-project/pull/169043
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to