This commit is contained in:
Brendan Hansknecht 2023-12-04 13:53:56 -08:00
parent fc09c3b002
commit dbcb6ca5da
No known key found for this signature in database
GPG key ID: A199D0660F95F948
2 changed files with 2 additions and 1 deletions

View file

@ -138,6 +138,7 @@ pub fn gen_from_mono_module<'a>(
// TODO how should imported modules factor into this? What if those use builtins too? // TODO how should imported modules factor into this? What if those use builtins too?
// TODO this should probably use more helper functions // TODO this should probably use more helper functions
// TODO make this polymorphic in the llvm functions so it can be reused for another backend. // TODO make this polymorphic in the llvm functions so it can be reused for another backend.
#[allow(clippy::too_many_arguments)]
fn gen_from_mono_module_llvm<'a>( fn gen_from_mono_module_llvm<'a>(
arena: &'a bumpalo::Bump, arena: &'a bumpalo::Bump,
loaded: MonomorphizedModule<'a>, loaded: MonomorphizedModule<'a>,

View file

@ -340,7 +340,7 @@ pub fn helper<'a>(
if !config.emit_debug_info { if !config.emit_debug_info {
module.strip_debug_info(); module.strip_debug_info();
} }
let res_lib = llvm_module_to_dylib(&module, &target, config.opt_level); let res_lib = llvm_module_to_dylib(module, &target, config.opt_level);
let lib = res_lib.expect("Error loading compiled dylib for test"); let lib = res_lib.expect("Error loading compiled dylib for test");