From 659e20fa7524f8fd217476daf5ecbbe366b2ae61 Mon Sep 17 00:00:00 2001 From: Zalathar Date: Sat, 8 Feb 2025 14:25:14 +1100 Subject: 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(-) (limited to 'compiler/rustc_codegen_llvm') diff --git a/compiler/rustc_codegen_llvm/src/llvm/ffi.rs b/compiler/rustc_codegen_llvm/src/llvm/ffi.rs index 441d144ce50..e0beaeab8a5 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. -- cgit 1.4.1-3-g733a5