diff options
| author | Oli Scherer <git-spam-no-reply9815368754983@oli-obk.de> | 2024-02-26 17:43:18 +0000 |
|---|---|---|
| committer | Oli Scherer <git-spam-no-reply9815368754983@oli-obk.de> | 2024-03-12 05:53:46 +0000 |
| commit | 92414ab25d5b9ddbee37d458e53e70ee4813d5ca (patch) | |
| tree | 76b751b30ca13567acedbd57de8471de33c96252 /compiler/rustc_codegen_llvm/src | |
| parent | 0b4cbee660a5c07e17ba86f3d1a51c4c1f9d5a13 (diff) | |
| download | rust-92414ab25d5b9ddbee37d458e53e70ee4813d5ca.tar.gz rust-92414ab25d5b9ddbee37d458e53e70ee4813d5ca.zip | |
Make some functions private that are only ever used in the same module
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
| -rw-r--r-- | compiler/rustc_codegen_llvm/src/consts.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_codegen_llvm/src/consts.rs b/compiler/rustc_codegen_llvm/src/consts.rs index 8acb3de8867..0a56e056bb8 100644 --- a/compiler/rustc_codegen_llvm/src/consts.rs +++ b/compiler/rustc_codegen_llvm/src/consts.rs @@ -114,7 +114,7 @@ pub fn const_alloc_to_llvm<'ll>(cx: &CodegenCx<'ll, '_>, alloc: ConstAllocation< cx.const_struct(&llvals, true) } -pub fn codegen_static_initializer<'ll, 'tcx>( +fn codegen_static_initializer<'ll, 'tcx>( cx: &CodegenCx<'ll, 'tcx>, def_id: DefId, ) -> Result<(&'ll Value, ConstAllocation<'tcx>), ErrorHandled> { |
