Debug output: show which function we are compiling

This commit is contained in:
Chris Fallin 2022-11-28 22:27:21 -08:00
parent 1892d62c76
commit 3f8d424169

View file

@ -226,7 +226,8 @@ impl<'a> Module<'a> {
}
pub fn to_wasm_bytes(&self) -> Result<Vec<u8>> {
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()?;