This will require the next Cranelift release: bytecodealliance/wasmtime#13789
|
// FIXME make JITModule::get_address public and use it here instead. |
|
// HACK rust_eh_personality is likely not defined in the same crate, |
|
// so get_finalized_function won't work. Use the rust_eh_personality |
|
// of cg_clif itself, which is likely ABI compatible. |
|
if jit_module.declarations().get_function_decl(func_id).name.as_deref() |
|
== Some("rust_eh_personality") |
|
{ |
|
unsafe extern "C" { |
|
fn rust_eh_personality() -> !; |
|
} |
|
rust_eh_personality as *const u8 |
This is required for mangling the rust_eh_personality symbol name in the future.
This will require the next Cranelift release: bytecodealliance/wasmtime#13789
rustc_codegen_cranelift/src/debuginfo/emit.rs
Lines 92 to 102 in c232e62
This is required for mangling the rust_eh_personality symbol name in the future.