about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/llvm
diff options
context:
space:
mode:
authorZalathar <Zalathar@users.noreply.github.com>2025-02-01 13:38:12 +1100
committerZalathar <Zalathar@users.noreply.github.com>2025-02-01 13:38:12 +1100
commitcd2af2dd9a82b564fd74f7d2b7876c120812f6ba (patch)
treeaa1ce9a7c88266423f15e0cc0d592b82b0d98fd3 /compiler/rustc_codegen_llvm/src/llvm
parent832fcfb64fdf47714b181bc29f2d93cb5a3383f4 (diff)
downloadrust-cd2af2dd9a82b564fd74f7d2b7876c120812f6ba.tar.gz
rust-cd2af2dd9a82b564fd74f7d2b7876c120812f6ba.zip
Use `LLVMDIBuilderFinalize`
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/llvm')
-rw-r--r--compiler/rustc_codegen_llvm/src/llvm/ffi.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_codegen_llvm/src/llvm/ffi.rs b/compiler/rustc_codegen_llvm/src/llvm/ffi.rs
index c3752f36f50..e6ffead845d 100644
--- a/compiler/rustc_codegen_llvm/src/llvm/ffi.rs
+++ b/compiler/rustc_codegen_llvm/src/llvm/ffi.rs
@@ -1715,6 +1715,8 @@ unsafe extern "C" {
 unsafe extern "C" {
     pub(crate) fn LLVMCreateDIBuilder<'ll>(M: &'ll Module) -> *mut DIBuilder<'ll>;
     pub(crate) fn LLVMDisposeDIBuilder<'ll>(Builder: ptr::NonNull<DIBuilder<'ll>>);
+
+    pub(crate) fn LLVMDIBuilderFinalize<'ll>(Builder: &DIBuilder<'ll>);
 }
 
 #[link(name = "llvm-wrapper", kind = "static")]
@@ -1984,8 +1986,6 @@ unsafe extern "C" {
         ValueLen: size_t,
     );
 
-    pub fn LLVMRustDIBuilderFinalize(Builder: &DIBuilder<'_>);
-
     pub fn LLVMRustDIBuilderCreateCompileUnit<'a>(
         Builder: &DIBuilder<'a>,
         Lang: c_uint,