@@ -26,7 +26,7 @@ use crate::value::Value;
26
26
27
27
/// Mark LLVM function to use provided inline heuristic.
28
28
#[ inline]
29
- pub fn inline ( cx : & CodegenCx < ' ll , ' _ > , val : & ' ll Value , inline : InlineAttr ) {
29
+ fn inline ( cx : & CodegenCx < ' ll , ' _ > , val : & ' ll Value , inline : InlineAttr ) {
30
30
use self :: InlineAttr :: * ;
31
31
match inline {
32
32
Hint => Attribute :: InlineHint . apply_llfn ( Function , val) ,
@@ -58,7 +58,7 @@ fn unwind(val: &'ll Value, can_unwind: bool) {
58
58
59
59
/// Tell LLVM if this function should be 'naked', i.e., skip the epilogue and prologue.
60
60
#[ inline]
61
- pub fn naked ( val : & ' ll Value , is_naked : bool ) {
61
+ fn naked ( val : & ' ll Value , is_naked : bool ) {
62
62
Attribute :: Naked . toggle_llfn ( Function , val, is_naked) ;
63
63
}
64
64
@@ -72,7 +72,7 @@ pub fn set_frame_pointer_elimination(cx: &CodegenCx<'ll, '_>, llfn: &'ll Value)
72
72
73
73
/// Tell LLVM what instrument function to insert.
74
74
#[ inline]
75
- pub fn set_instrument_function ( cx : & CodegenCx < ' ll , ' _ > , llfn : & ' ll Value ) {
75
+ fn set_instrument_function ( cx : & CodegenCx < ' ll , ' _ > , llfn : & ' ll Value ) {
76
76
if cx. sess ( ) . instrument_mcount ( ) {
77
77
// Similar to `clang -pg` behavior. Handled by the
78
78
// `post-inline-ee-instrument` LLVM pass.
@@ -88,7 +88,7 @@ pub fn set_instrument_function(cx: &CodegenCx<'ll, '_>, llfn: &'ll Value) {
88
88
}
89
89
}
90
90
91
- pub fn set_probestack ( cx : & CodegenCx < ' ll , ' _ > , llfn : & ' ll Value ) {
91
+ fn set_probestack ( cx : & CodegenCx < ' ll , ' _ > , llfn : & ' ll Value ) {
92
92
// Only use stack probes if the target specification indicates that we
93
93
// should be using stack probes
94
94
if !cx. sess ( ) . target . target . options . stack_probes {
0 commit comments