From 84e16a57daf0b0d482a67e44b0f035947a44e7a6 Mon Sep 17 00:00:00 2001 From: Chris Fallin Date: Wed, 30 Nov 2022 21:11:19 -0800 Subject: [PATCH] Log which function is being compiled in backend. --- src/backend/mod.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/backend/mod.rs b/src/backend/mod.rs index 9895dd1..f7fd76e 100644 --- a/src/backend/mod.rs +++ b/src/backend/mod.rs @@ -689,8 +689,9 @@ pub fn compile(module: &Module<'_>) -> anyhow::Result> { into_mod.section(&elem); let mut code = wasm_encoder::CodeSection::new(); - for (_func, func_decl) in module.funcs().skip(num_func_imports) { + for (func, func_decl) in module.funcs().skip(num_func_imports) { let body = func_decl.body().unwrap(); + log::debug!("Compiling {}", func); let body = WasmFuncBackend::new(body)?.compile()?; code.function(&body); }