Debugging improvements

This commit is contained in:
Brian Carroll 2021-11-30 09:48:15 +00:00
parent 8a137126fe
commit a08633fd36
5 changed files with 59 additions and 41 deletions

View file

@ -104,6 +104,15 @@ pub fn build_module_help<'a>(
// Generate IR for refcounting procs
let refcount_procs = backend.generate_refcount_procs();
backend.register_symbol_debug_names();
if false {
for proc in refcount_procs.iter() {
println!("{}", proc.to_pretty(200));
println!("{:#?}", proc);
}
}
// Generate Wasm for refcounting procs
for proc in refcount_procs.iter() {
backend.build_proc(proc)?;
@ -111,12 +120,6 @@ pub fn build_module_help<'a>(
let module = backend.finalize_module();
if true {
for proc in refcount_procs.into_iter() {
println!("{}", proc.to_pretty(200));
}
}
Ok((module, main_fn_index.unwrap()))
}