From 031bfa659ff00583ce9195fd72cdbedbefce7d91 Mon Sep 17 00:00:00 2001 From: bjorn3 <17426603+bjorn3@users.noreply.github.com> Date: Tue, 23 May 2023 11:48:34 +0000 Subject: [PATCH] Print symbol name in PrintOnPanic for define_function --- src/base.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/base.rs b/src/base.rs index e9dbea1be67..f5de5166776 100644 --- a/src/base.rs +++ b/src/base.rs @@ -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(