@@ -106,6 +106,7 @@ pub struct CodegenCx<'gcc, 'tcx> {
106
106
local_gen_sym_counter : Cell < usize > ,
107
107
108
108
eh_personality : Cell < Option < RValue < ' gcc > > > ,
109
+ #[ cfg( feature="master" ) ]
109
110
pub rust_try_fn : Cell < Option < ( Type < ' gcc > , Function < ' gcc > ) > > ,
110
111
111
112
pub pointee_infos : RefCell < FxHashMap < ( Ty < ' tcx > , Size ) , Option < PointeeInfo > > > ,
@@ -117,6 +118,7 @@ pub struct CodegenCx<'gcc, 'tcx> {
117
118
/// FIXME(antoyo): fix the rustc API to avoid having this hack.
118
119
pub structs_as_pointer : RefCell < FxHashSet < RValue < ' gcc > > > ,
119
120
121
+ #[ cfg( feature="master" ) ]
120
122
pub cleanup_blocks : RefCell < FxHashSet < Block < ' gcc > > > ,
121
123
}
122
124
@@ -269,9 +271,11 @@ impl<'gcc, 'tcx> CodegenCx<'gcc, 'tcx> {
269
271
struct_types : Default :: default ( ) ,
270
272
local_gen_sym_counter : Cell :: new ( 0 ) ,
271
273
eh_personality : Cell :: new ( None ) ,
274
+ #[ cfg( feature="master" ) ]
272
275
rust_try_fn : Cell :: new ( None ) ,
273
276
pointee_infos : Default :: default ( ) ,
274
277
structs_as_pointer : Default :: default ( ) ,
278
+ #[ cfg( feature="master" ) ]
275
279
cleanup_blocks : Default :: default ( ) ,
276
280
} ;
277
281
// TODO(antoyo): instead of doing this, add SsizeT to libgccjit.
0 commit comments