General cleanup, more native platform detection.

This commit is contained in:
Christoffer Lerno
2022-02-17 20:49:57 +01:00
committed by Christoffer Lerno
parent 73351e0aa9
commit bf5683b41c
27 changed files with 167 additions and 304 deletions

View File

@@ -4712,7 +4712,7 @@ void llvm_emit_call_expr(GenContext *c, BEValue *result_value, Expr *expr)
LLVMValueRef call_value = LLVMBuildCall2(c->builder, func_type, func, values, vec_size(values), "");
if (prototype->call_abi)
{
LLVMSetInstructionCallConv(call_value, llvm_call_convention_from_call(prototype->call_abi, platform_target.arch, platform_target.os));
LLVMSetInstructionCallConv(call_value, llvm_call_convention_from_call(prototype->call_abi));
}
if (expr->call_expr.force_noinline)
{