Use LLVMDIBuilderCreateTypedef

This commit is contained in:
Zalathar
2025-09-17 21:36:59 +10:00
parent 002771ab5c
commit 6b51f7c076
3 changed files with 17 additions and 25 deletions

View File

@@ -821,14 +821,15 @@ fn build_basic_type_di_node<'ll, 'tcx>(
};
let typedef_di_node = unsafe {
llvm::LLVMRustDIBuilderCreateTypedef(
llvm::LLVMDIBuilderCreateTypedef(
DIB(cx),
ty_di_node,
typedef_name.as_c_char_ptr(),
typedef_name.as_ptr(),
typedef_name.len(),
unknown_file_metadata(cx),
0,
None,
0, // (no line number)
None, // (no scope)
0u32, // (no alignment specified)
)
};