mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 06:14:46 +00:00
Debugging improvements
This commit is contained in:
parent
8a137126fe
commit
a08633fd36
5 changed files with 59 additions and 41 deletions
|
@ -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()))
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue