Use LLVMGetInlineAsm

This LLVM-C binding replaces the existing `LLVMRustInlineAsm` function.
This commit is contained in:
Zalathar
2025-05-10 18:54:45 +10:00
parent 8764ecd0c1
commit d1bb310a7a
3 changed files with 17 additions and 43 deletions

View File

@@ -488,11 +488,11 @@ pub(crate) fn inline_asm_call<'ll>(
debug!("constraint verification result: {:?}", constraints_ok);
if constraints_ok {
let v = unsafe {
llvm::LLVMRustInlineAsm(
llvm::LLVMGetInlineAsm(
fty,
asm.as_c_char_ptr(),
asm.as_ptr(),
asm.len(),
cons.as_c_char_ptr(),
cons.as_ptr(),
cons.len(),
volatile,
alignstack,