File tree 2 files changed +9
-8
lines changed
2 files changed +9
-8
lines changed Original file line number Diff line number Diff line change 3
3
static inline int foo () {
4
4
return 11 ;
5
5
}
6
+ static int bar ();
6
7
static int bar () {
7
8
return 1 ;
8
9
}
Original file line number Diff line number Diff line change @@ -4029,14 +4029,10 @@ impl CodeGenerator for Function {
4029
4029
4030
4030
let is_internal = matches ! ( self . linkage( ) , Linkage :: Internal ) ;
4031
4031
4032
- if is_internal {
4033
- if ctx. options ( ) . wrap_static_fns {
4034
- result. items_to_serialize . push ( item. id ( ) ) ;
4035
- } else {
4036
- // We can't do anything with Internal functions if we are not wrapping them so just
4037
- // avoid generating anything for them.
4038
- return None ;
4039
- }
4032
+ if is_internal && !ctx. options ( ) . wrap_static_fns {
4033
+ // We can't do anything with Internal functions if we are not wrapping them so just
4034
+ // avoid generating anything for them.
4035
+ return None ;
4040
4036
}
4041
4037
4042
4038
// Pure virtual methods have no actual symbol, so we can't generate
@@ -4139,6 +4135,10 @@ impl CodeGenerator for Function {
4139
4135
abi => abi,
4140
4136
} ;
4141
4137
4138
+ if is_internal && ctx. options ( ) . wrap_static_fns {
4139
+ result. items_to_serialize . push ( item. id ( ) ) ;
4140
+ }
4141
+
4142
4142
// Handle overloaded functions by giving each overload its own unique
4143
4143
// suffix.
4144
4144
let times_seen = result. overload_number ( & canonical_name) ;
You can’t perform that action at this time.
0 commit comments