From 3f8d424169ba4f3016b45499868e1c9ffb606ad7 Mon Sep 17 00:00:00 2001 From: Chris Fallin Date: Mon, 28 Nov 2022 22:27:21 -0800 Subject: [PATCH] Debug output: show which function we are compiling --- src/ir/module.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ir/module.rs b/src/ir/module.rs index f83fe08..6a0a78f 100644 --- a/src/ir/module.rs +++ b/src/ir/module.rs @@ -226,7 +226,8 @@ impl<'a> Module<'a> { } pub fn to_wasm_bytes(&self) -> Result> { - for func_decl in self.funcs.values() { + for (func, func_decl) in self.funcs.entries() { + log::debug!("Compiling: {}", func); if let Some(body) = func_decl.body() { let comp = backend::WasmBackend::new(body)?; let _ = comp.compile()?;