Skip to content

Commit 420e44f

Browse files
committed
Reduce visibility of a couple of functions
1 parent 91c9660 commit 420e44f

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

src/driver/jit.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ pub(crate) fn run_jit(tcx: TyCtxt<'_>, jit_args: Vec<String>) -> ! {
119119
std::process::exit(ret);
120120
}
121121

122-
pub(crate) fn codegen_and_compile_fn<'tcx>(
122+
fn codegen_and_compile_fn<'tcx>(
123123
tcx: TyCtxt<'tcx>,
124124
cx: &mut crate::CodegenCx,
125125
cached_context: &mut Context,

src/intrinsics/llvm_aarch64.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ use crate::inline_asm::{CInlineAsmOperand, codegen_inline_asm_inner};
77
use crate::intrinsics::*;
88
use crate::prelude::*;
99

10-
pub(crate) fn codegen_aarch64_llvm_intrinsic_call<'tcx>(
10+
pub(super) fn codegen_aarch64_llvm_intrinsic_call<'tcx>(
1111
fx: &mut FunctionCx<'_, '_, 'tcx>,
1212
intrinsic: &str,
1313
args: &[Spanned<mir::Operand<'tcx>>],

src/intrinsics/llvm_x86.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ use crate::inline_asm::{CInlineAsmOperand, codegen_inline_asm_inner};
77
use crate::intrinsics::*;
88
use crate::prelude::*;
99

10-
pub(crate) fn codegen_x86_llvm_intrinsic_call<'tcx>(
10+
pub(super) fn codegen_x86_llvm_intrinsic_call<'tcx>(
1111
fx: &mut FunctionCx<'_, '_, 'tcx>,
1212
intrinsic: &str,
1313
args: &[Spanned<mir::Operand<'tcx>>],

src/num.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
33
use crate::prelude::*;
44

5-
pub(crate) fn bin_op_to_intcc(bin_op: BinOp, signed: bool) -> IntCC {
5+
fn bin_op_to_intcc(bin_op: BinOp, signed: bool) -> IntCC {
66
use BinOp::*;
77
use IntCC::*;
88
match bin_op {
@@ -109,7 +109,7 @@ pub(crate) fn codegen_binop<'tcx>(
109109
}
110110
}
111111

112-
pub(crate) fn codegen_bool_binop<'tcx>(
112+
fn codegen_bool_binop<'tcx>(
113113
fx: &mut FunctionCx<'_, '_, 'tcx>,
114114
bin_op: BinOp,
115115
in_lhs: CValue<'tcx>,
@@ -389,7 +389,7 @@ pub(crate) fn codegen_float_binop<'tcx>(
389389
CValue::by_val(res, in_lhs.layout())
390390
}
391391

392-
pub(crate) fn codegen_ptr_binop<'tcx>(
392+
fn codegen_ptr_binop<'tcx>(
393393
fx: &mut FunctionCx<'_, '_, 'tcx>,
394394
bin_op: BinOp,
395395
in_lhs: CValue<'tcx>,

0 commit comments

Comments
 (0)