From 659e20fa7524f8fd217476daf5ecbbe366b2ae61 Mon Sep 17 00:00:00 2001 From: Zalathar Date: Sat, 8 Feb 2025 14:25:14 +1100 Subject: [PATCH] Remove `LLVMGetModuleContext` This was unused after the removal of `-Zprofile` in #131829. --- compiler/rustc_codegen_llvm/src/llvm/ffi.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/compiler/rustc_codegen_llvm/src/llvm/ffi.rs b/compiler/rustc_codegen_llvm/src/llvm/ffi.rs index 441d144ce50d..e0beaeab8a55 100644 --- a/compiler/rustc_codegen_llvm/src/llvm/ffi.rs +++ b/compiler/rustc_codegen_llvm/src/llvm/ffi.rs @@ -972,7 +972,6 @@ unsafe extern "C" { // Create modules. pub fn LLVMModuleCreateWithNameInContext(ModuleID: *const c_char, C: &Context) -> &Module; - pub fn LLVMGetModuleContext(M: &Module) -> &Context; pub fn LLVMCloneModule(M: &Module) -> &Module; /// Data layout. See Module::getDataLayout.