Skip to content

Commit 0397e52

Browse files
committed
Add debugging names for multivalue shims
1 parent 513285f commit 0397e52

File tree

1 file changed

+3
-0
lines changed
  • crates/multi-value-xform/src

1 file changed

+3
-0
lines changed

crates/multi-value-xform/src/lib.rs

+3
Original file line numberDiff line numberDiff line change
@@ -298,6 +298,9 @@ fn xform_one(
298298
.global_set(shadow_stack_pointer);
299299

300300
let wrapper = wrapper.finish(params, &mut module.funcs);
301+
if let Some(name) = &module.funcs.get(func).name {
302+
module.funcs.get_mut(wrapper).name = Some(format!("{} multivalue shim", name));
303+
}
301304

302305
// Replace the old export with our new multi-value wrapper for it!
303306
match module.exports.get_mut(export).item {

0 commit comments

Comments
 (0)