WIP12 - printf

This commit is contained in:
David Mak 2024-08-12 16:20:34 +08:00
parent 502b020042
commit 7941b5efa0
1 changed files with 1 additions and 1 deletions

View File

@ -751,7 +751,7 @@ fn polymorphic_print<'ctx>(
assert!(!fmt.is_empty());
assert_eq!(fmt.as_bytes().last().unwrap(), &0u8);
let fn_name = if as_rtio { "rtio_log" } else { "core_log" };
let fn_name = if as_rtio { "rtio_log" } else { "printf" };
let print_fn = ctx.module.get_function(fn_name).unwrap_or_else(|| {
let llvm_pi8 = ctx.ctx.i8_type().ptr_type(AddressSpace::default());
let fn_t = if as_rtio {