Debug output: show which function we are compiling
This commit is contained in:
parent
1892d62c76
commit
3f8d424169
|
@ -226,7 +226,8 @@ impl<'a> Module<'a> {
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn to_wasm_bytes(&self) -> Result<Vec<u8>> {
|
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() {
|
if let Some(body) = func_decl.body() {
|
||||||
let comp = backend::WasmBackend::new(body)?;
|
let comp = backend::WasmBackend::new(body)?;
|
||||||
let _ = comp.compile()?;
|
let _ = comp.compile()?;
|
||||||
|
|
Loading…
Reference in a new issue