about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/context.rs
diff options
context:
space:
mode:
authorMarcelo Domínguez <dmmarcelo27@gmail.com>2025-08-14 08:21:15 +0000
committerMarcelo Domínguez <dmmarcelo27@gmail.com>2025-08-14 16:30:16 +0000
commite1d79b9aad9cfcfcf23c68ec8625411819d4e3f7 (patch)
tree75afc559a740854fec576875f59ff25c9b55583c /compiler/rustc_codegen_llvm/src/context.rs
parentc9c1c171289aa575040678f3d0c005342b1e29e1 (diff)
downloadrust-e1d79b9aad9cfcfcf23c68ec8625411819d4e3f7.tar.gz
rust-e1d79b9aad9cfcfcf23c68ec8625411819d4e3f7.zip
Remove lto inline logic
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/context.rs')
-rw-r--r--compiler/rustc_codegen_llvm/src/context.rs10
1 files changed, 0 insertions, 10 deletions
diff --git a/compiler/rustc_codegen_llvm/src/context.rs b/compiler/rustc_codegen_llvm/src/context.rs
index da8c1e5f47b..b0f3494ea68 100644
--- a/compiler/rustc_codegen_llvm/src/context.rs
+++ b/compiler/rustc_codegen_llvm/src/context.rs
@@ -722,16 +722,6 @@ impl<'ll, CX: Borrow<SCx<'ll>>> GenericCx<'ll, CX> {
             llvm::LLVMMDStringInContext2(self.llcx(), name.as_ptr() as *const c_char, name.len())
         }
     }
-
-    pub(crate) fn get_functions(&self) -> Vec<&'ll Value> {
-        let mut functions = vec![];
-        let mut func = unsafe { llvm::LLVMGetFirstFunction(self.llmod()) };
-        while let Some(f) = func {
-            functions.push(f);
-            func = unsafe { llvm::LLVMGetNextFunction(f) }
-        }
-        functions
-    }
 }
 
 impl<'ll, 'tcx> MiscCodegenMethods<'tcx> for CodegenCx<'ll, 'tcx> {