Log which function is being compiled in backend.

This commit is contained in:
Chris Fallin 2022-11-30 21:11:19 -08:00
parent 4c90c8a4a8
commit 84e16a57da
No known key found for this signature in database
GPG key ID: 31649E4FE65EB465

View file

@ -689,8 +689,9 @@ pub fn compile(module: &Module<'_>) -> anyhow::Result<Vec<u8>> {
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);
}