mirror of
https://github.com/odin-lang/Odin.git
synced 2026-06-07 11:04:17 +00:00
Add llvm_get_inline_asm for future compatibility
This commit is contained in:
@@ -2510,11 +2510,7 @@ lbValue lb_build_expr(lbProcedure *p, Ast *expr) {
|
||||
}
|
||||
|
||||
LLVMTypeRef func_type = LLVMGetElementType(lb_type(p->module, t));
|
||||
LLVMValueRef the_asm = LLVMGetInlineAsm(func_type,
|
||||
cast(char *)asm_string.text, cast(size_t)asm_string.len,
|
||||
cast(char *)constraints_string.text, cast(size_t)constraints_string.len,
|
||||
ia->has_side_effects, ia->is_align_stack, dialect
|
||||
);
|
||||
LLVMValueRef the_asm = llvm_get_inline_asm(func_type, asm_string, constraints_string, ia->has_side_effects, ia->has_side_effects, dialect);
|
||||
GB_ASSERT(the_asm != nullptr);
|
||||
return {the_asm, t};
|
||||
case_end;
|
||||
|
||||
Reference in New Issue
Block a user