From d59cae8cf13fd548c0fa96b45bf04a7907c1ae86 Mon Sep 17 00:00:00 2001 From: Zalathar Date: Thu, 28 May 2026 12:47:38 +1000 Subject: [PATCH] Note some bindings that can be replaced after dropping LLVM 21 support --- compiler/rustc_codegen_llvm/src/llvm/ffi.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/compiler/rustc_codegen_llvm/src/llvm/ffi.rs b/compiler/rustc_codegen_llvm/src/llvm/ffi.rs index 3db3c498f87b..eb9b2ab12129 100644 --- a/compiler/rustc_codegen_llvm/src/llvm/ffi.rs +++ b/compiler/rustc_codegen_llvm/src/llvm/ffi.rs @@ -1996,6 +1996,7 @@ pub(crate) fn LLVMDIBuilderCreateParameterVariable<'ll>( pub(crate) fn LLVMRustDisableSystemDialogsOnCrash(); // Operations on all values + /// FIXME: After dropping LLVM 21, migrate to LLVM-C's `LLVMGlobalAddMetadata`. pub(crate) fn LLVMRustGlobalAddMetadata<'a>( Val: &'a Value, KindID: MetadataKindId, @@ -2065,6 +2066,7 @@ pub(crate) fn LLVMRustCreateRangeAttribute( ) -> &Attribute; // Operations on functions + /// FIXME: After dropping LLVM 21, migrate to LLVM-C's `LLVMGetOrInsertFunction`. pub(crate) fn LLVMRustGetOrInsertFunction<'a>( M: &'a Module, Name: *const c_char,