Print symbol name in PrintOnPanic for define_function

This commit is contained in:
bjorn3 2023-05-23 11:48:34 +00:00
parent a684753a68
commit 031bfa659f

View File

@ -156,6 +156,7 @@ pub(crate) fn compile_fn(
write!(clif, " {}", isa_flag).unwrap();
}
writeln!(clif, "\n").unwrap();
writeln!(clif, "; symbol {}", codegened_func.symbol_name).unwrap();
crate::PrintOnPanic(move || {
let mut clif = clif.clone();
::cranelift_codegen::write::decorate_function(