WIP12 - printf
This commit is contained in:
parent
502b020042
commit
7941b5efa0
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue