explicitly include muloti4 in LLVM IR

This commit is contained in:
Folkert 2021-07-21 15:01:18 +02:00
parent 0d606a348e
commit bafb16091d
3 changed files with 48 additions and 1 deletions

View file

@ -369,6 +369,10 @@ fn add_intrinsics<'ctx>(ctx: &'ctx Context, module: &Module<'ctx>) {
let i32_type = ctx.i32_type();
let i64_type = ctx.i64_type();
if let Some(func) = module.get_function("__muloti4") {
func.set_linkage(Linkage::External);
}
add_intrinsic(
module,
LLVM_LOG_F64,