This commit is contained in:
Folkert 2022-07-24 12:54:55 +02:00
parent 2a91c39ac6
commit 83a878b2f9
No known key found for this signature in database
GPG key ID: 1F17F6FFD112B97C
3 changed files with 8 additions and 8 deletions

View file

@ -1060,7 +1060,7 @@ pub(crate) fn pass_list_or_string_to_zig_32bit<'a, 'ctx, 'env>(
(ptr_len, cap)
}
pub(crate) fn call_str_bitcode_fn_new<'a, 'ctx, 'env>(
pub(crate) fn call_str_bitcode_fn<'a, 'ctx, 'env>(
env: &Env<'a, 'ctx, 'env>,
strings: &[BasicValueEnum<'ctx>],
other_arguments: &[BasicValueEnum<'ctx>],

View file

@ -1,7 +1,7 @@
use crate::llvm::bitcode::{
call_bitcode_fn, call_bitcode_fn_fixing_for_convention, call_list_bitcode_fn,
call_list_bitcode_fn_new, call_str_bitcode_fn_new, call_str_bitcode_fn_old,
call_void_bitcode_fn, BitcodeReturns,
call_list_bitcode_fn_new, call_str_bitcode_fn, call_str_bitcode_fn_old, call_void_bitcode_fn,
BitcodeReturns,
};
use crate::llvm::build_list::{
self, allocate_list, empty_polymorphic_list, list_append_unsafe, list_capacity, list_concat,
@ -5823,7 +5823,7 @@ fn run_low_level<'a, 'ctx, 'env>(
Layout::Builtin(Builtin::Int(int_width)) => {
let int = num.into_int_value();
call_str_bitcode_fn_new(
call_str_bitcode_fn(
env,
&[],
&[int.into()],
@ -5839,7 +5839,7 @@ fn run_low_level<'a, 'ctx, 'env>(
_ => unreachable!(),
};
call_str_bitcode_fn_new(
call_str_bitcode_fn(
env,
&[],
&[float],
@ -7263,7 +7263,7 @@ fn build_int_unary_op<'a, 'ctx, 'env>(
let zig_function_type = zig_function.get_type();
match zig_function_type.get_return_type() {
Some(_) => call_str_bitcode_fn_new(
Some(_) => call_str_bitcode_fn(
env,
&[],
&[arg.into()],

View file

@ -8,7 +8,7 @@ use roc_module::symbol::Symbol;
use roc_mono::layout::{Builtin, Layout};
use roc_target::PtrWidth;
use super::bitcode::{call_bitcode_fn, call_str_bitcode_fn_new, BitcodeReturns};
use super::bitcode::{call_bitcode_fn, call_str_bitcode_fn, BitcodeReturns};
use super::build::{create_entry_block_alloca, load_symbol};
pub static CHAR_LAYOUT: Layout = Layout::u8();
@ -130,7 +130,7 @@ pub fn dec_to_str<'a, 'ctx, 'env>(
let right_bits = env.builder.build_int_cast(dec, int_64_type, "");
let left_bits = env.builder.build_int_cast(dec_right_shift, int_64_type, "");
call_str_bitcode_fn_new(
call_str_bitcode_fn(
env,
&[],
&[right_bits.into(), left_bits.into()],