Create Expr::to_pretty in mono IR

This commit is contained in:
Brian Carroll 2021-11-30 09:40:50 +00:00
parent 079a8311ec
commit c2a2ff2957
2 changed files with 13 additions and 0 deletions

View file

@ -280,6 +280,8 @@ impl<'a> WasmBackend<'a> {
Stmt::Let(_, _, _, _) => {
let mut current_stmt = stmt;
while let Stmt::Let(sym, expr, layout, following) = current_stmt {
// println!("let {:?} = {}", sym, expr.to_pretty(200)); // ingore `following`! Too confusing otherwise.
let wasm_layout = WasmLayout::new(layout);
let kind = match following {