File tree Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -104,10 +104,17 @@ fn create_wrapper_function(
104
104
false ,
105
105
) ;
106
106
107
- if tcx. sess . default_hidden_visibility ( ) {
108
- #[ cfg( feature = "master" ) ]
109
- func. add_attribute ( FnAttribute :: Visibility ( gccjit:: Visibility :: Hidden ) ) ;
107
+ #[ cfg( feature = "master" ) ]
108
+ match tcx. sess . default_visibility ( ) {
109
+ rustc_target:: spec:: SymbolVisibility :: Hidden => {
110
+ func. add_attribute ( FnAttribute :: Visibility ( gccjit:: Visibility :: Hidden ) )
111
+ }
112
+ rustc_target:: spec:: SymbolVisibility :: Protected => {
113
+ func. add_attribute ( FnAttribute :: Visibility ( gccjit:: Visibility :: Protected ) )
114
+ }
115
+ rustc_target:: spec:: SymbolVisibility :: Interposable => { }
110
116
}
117
+
111
118
if tcx. sess . must_emit_unwind_tables ( ) {
112
119
// TODO(antoyo): emit unwind tables.
113
120
}
You can’t perform that action at this time.
0 commit comments