mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 06:14:46 +00:00
make things static again
This commit is contained in:
parent
a072d8d1b1
commit
f8dec9453b
1 changed files with 2 additions and 17 deletions
|
@ -48,7 +48,7 @@ use inkwell::{AddressSpace, IntPredicate};
|
|||
use morphic_lib::{
|
||||
CalleeSpecVar, FuncName, FuncSpec, FuncSpecSolutions, ModSolutions, UpdateMode, UpdateModeVar,
|
||||
};
|
||||
use roc_builtins::bitcode::{self, DecWidth, FloatWidth, IntWidth, IntrinsicName};
|
||||
use roc_builtins::bitcode::{self, FloatWidth, IntWidth, IntrinsicName};
|
||||
use roc_collections::all::{ImMap, MutMap, MutSet};
|
||||
use roc_module::low_level::LowLevel;
|
||||
use roc_module::symbol::{Interns, ModuleId, Symbol};
|
||||
|
@ -229,7 +229,7 @@ impl<'a, 'ctx, 'env> Env<'a, 'ctx, 'env> {
|
|||
|
||||
pub fn call_intrinsic(
|
||||
&self,
|
||||
intrinsic_name: &str,
|
||||
intrinsic_name: &'static str,
|
||||
args: &[BasicValueEnum<'ctx>],
|
||||
) -> BasicValueEnum<'ctx> {
|
||||
let call = self.build_intrinsic_call(intrinsic_name, args);
|
||||
|
@ -6670,21 +6670,6 @@ pub fn call_bitcode_float_fn<'a, 'ctx, 'env>(
|
|||
}
|
||||
}
|
||||
|
||||
pub fn call_float_intrinsic<'a, 'ctx, 'env>(
|
||||
env: &Env<'a, 'ctx, 'env>,
|
||||
fn_name: &str,
|
||||
args: &[BasicValueEnum<'ctx>],
|
||||
float_width: FloatWidth,
|
||||
) -> BasicValueEnum<'ctx> {
|
||||
let suffix = match float_width {
|
||||
FloatWidth::F32 => "f32",
|
||||
FloatWidth::F64 => "f64",
|
||||
FloatWidth::F128 => "f128",
|
||||
};
|
||||
|
||||
env.call_intrinsic(&format!("{}.{}", fn_name, suffix), args)
|
||||
}
|
||||
|
||||
fn define_global_str_literal_ptr<'a, 'ctx, 'env>(
|
||||
env: &Env<'a, 'ctx, 'env>,
|
||||
message: &str,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue