mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-04-29 07:32:17 +00:00
Add debugging names for multivalue shims
This commit is contained in:
parent
513285f73d
commit
0397e529e0
@ -298,6 +298,9 @@ fn xform_one(
|
|||||||
.global_set(shadow_stack_pointer);
|
.global_set(shadow_stack_pointer);
|
||||||
|
|
||||||
let wrapper = wrapper.finish(params, &mut module.funcs);
|
let wrapper = wrapper.finish(params, &mut module.funcs);
|
||||||
|
if let Some(name) = &module.funcs.get(func).name {
|
||||||
|
module.funcs.get_mut(wrapper).name = Some(format!("{} multivalue shim", name));
|
||||||
|
}
|
||||||
|
|
||||||
// Replace the old export with our new multi-value wrapper for it!
|
// Replace the old export with our new multi-value wrapper for it!
|
||||||
match module.exports.get_mut(export).item {
|
match module.exports.get_mut(export).item {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user