mirror of
https://github.com/ProvableHQ/leo.git
synced 2024-12-27 04:01:47 +03:00
Remove debug prints
This commit is contained in:
parent
b60cd7e4b0
commit
134fc1860c
@ -198,17 +198,11 @@ fn compile_and_process<'a>(parsed: &'a mut Compiler<'a>, handler: &Handler) -> R
|
||||
let st = parsed.loop_unrolling_pass(st)?;
|
||||
let assigner = parsed.static_single_assignment_pass(&st)?;
|
||||
|
||||
println!("Before ssa:\n{:?}", parsed.ast);
|
||||
|
||||
parsed.flattening_pass(&st, assigner)?;
|
||||
|
||||
println!("Before codegen:\n{:?}", parsed.ast);
|
||||
|
||||
// Compile Leo program to bytecode.
|
||||
let bytecode = CodeGenerator::do_pass((&parsed.ast, handler))?;
|
||||
|
||||
println!("After codegen:\n{:?}", bytecode);
|
||||
|
||||
Ok(bytecode)
|
||||
}
|
||||
|
||||
|
@ -45,7 +45,6 @@ impl<'a> CodeGenerator<'a> {
|
||||
}
|
||||
|
||||
fn visit_identifier(&mut self, input: &'a Identifier) -> (String, String) {
|
||||
println!("Codegen|visit_identifier|input: {:?}", input);
|
||||
(self.variable_mapping.get(&input.name).unwrap().clone(), String::new())
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user