This commit is contained in:
nora 2023-05-23 09:11:23 +02:00
parent 8bf9849641
commit d3846e3357
5 changed files with 265 additions and 133 deletions

View file

@ -123,6 +123,22 @@ impl<W: Write> PrettyPrinter<W> {
print_reg(reg),
print_op(amount)
),
StatementKind::Call {
result,
func,
ref args,
} => {
writeln!(
self.out,
" {} = call {} ({})",
print_reg(result),
print_op(func),
args.iter()
.map(|arg| print_op(*arg).to_string())
.collect::<Vec<_>>()
.join(", ")
)
}
}?;
}