This commit is contained in:
Brian Carroll 2023-09-09 15:03:50 +01:00
parent fc7b831285
commit aa0e975845
No known key found for this signature in database
GPG key ID: 5C7B2EC4101703C0
6 changed files with 18 additions and 53 deletions

View file

@ -20,8 +20,8 @@ use roc_types::pretty_print::{name_and_print_var, DebugPrint};
use roc_types::subs::Subs;
use target_lexicon::Triple;
pub fn eval_llvm<'a>(
mut loaded: MonomorphizedModule<'a>,
pub fn eval_llvm(
mut loaded: MonomorphizedModule<'_>,
target: &Triple,
opt_level: OptLevel,
) -> Option<ReplOutput> {
@ -55,7 +55,7 @@ pub fn eval_llvm<'a>(
let interns = loaded.interns.clone();
let (lib, main_fn_name, subs, layout_interner) =
mono_module_to_dylib(&arena, &target, loaded, opt_level).expect("we produce a valid Dylib");
mono_module_to_dylib(&arena, target, loaded, opt_level).expect("we produce a valid Dylib");
let mut app = CliApp { lib };
@ -256,6 +256,6 @@ fn mono_module_to_dylib<'a>(
internal_error!("Errors defining module:\n{}", errors.to_string());
}
llvm_module_to_dylib(env.module, &target, opt_level)
llvm_module_to_dylib(env.module, target, opt_level)
.map(|lib| (lib, main_fn_name, subs, layout_interner))
}

View file

@ -95,8 +95,8 @@ pub fn main() -> i32 {
}
}
pub fn evaluate<'a>(
opt_mono: Option<MonomorphizedModule<'a>>,
pub fn evaluate(
opt_mono: Option<MonomorphizedModule<'_>>,
problems: Problems,
opt_var_name: Option<String>,
target: &Triple,