@@ -110,6 +110,7 @@ pub struct CodegenCx<'gcc, 'tcx> {
110
110
local_gen_sym_counter : Cell < usize > ,
111
111
112
112
eh_personality : Cell < Option < RValue < ' gcc > > > ,
113
+ #[ cfg( feature="master" ) ]
113
114
pub rust_try_fn : Cell < Option < ( Type < ' gcc > , Function < ' gcc > ) > > ,
114
115
115
116
pub pointee_infos : RefCell < FxHashMap < ( Ty < ' tcx > , Size ) , Option < PointeeInfo > > > ,
@@ -121,6 +122,7 @@ pub struct CodegenCx<'gcc, 'tcx> {
121
122
/// FIXME(antoyo): fix the rustc API to avoid having this hack.
122
123
pub structs_as_pointer : RefCell < FxHashSet < RValue < ' gcc > > > ,
123
124
125
+ #[ cfg( feature="master" ) ]
124
126
pub cleanup_blocks : RefCell < FxHashSet < Block < ' gcc > > > ,
125
127
}
126
128
@@ -325,9 +327,11 @@ impl<'gcc, 'tcx> CodegenCx<'gcc, 'tcx> {
325
327
struct_types : Default :: default ( ) ,
326
328
local_gen_sym_counter : Cell :: new ( 0 ) ,
327
329
eh_personality : Cell :: new ( None ) ,
330
+ #[ cfg( feature="master" ) ]
328
331
rust_try_fn : Cell :: new ( None ) ,
329
332
pointee_infos : Default :: default ( ) ,
330
333
structs_as_pointer : Default :: default ( ) ,
334
+ #[ cfg( feature="master" ) ]
331
335
cleanup_blocks : Default :: default ( ) ,
332
336
} ;
333
337
// TODO(antoyo): instead of doing this, add SsizeT to libgccjit.
0 commit comments