@@ -13,7 +13,6 @@ use common;
13
13
use llvm;
14
14
use rustc:: dep_graph:: DepGraphSafe ;
15
15
use rustc:: hir;
16
- use rustc:: hir:: def_id:: DefId ;
17
16
use debuginfo;
18
17
use callee;
19
18
use base;
@@ -78,9 +77,6 @@ pub struct CodegenCx<'a, 'tcx: 'a> {
78
77
/// Cache of emitted const globals (value -> global)
79
78
pub const_globals : RefCell < FxHashMap < & ' a Value , & ' a Value > > ,
80
79
81
- /// Mapping from static definitions to their DefId's.
82
- pub statics : RefCell < FxHashMap < & ' a Value , DefId > > ,
83
-
84
80
/// List of globals for static variables which need to be passed to the
85
81
/// LLVM function ReplaceAllUsesWith (RAUW) when codegen is complete.
86
82
/// (We have to make sure we don't invalidate any Values referring
@@ -297,7 +293,6 @@ impl<'a, 'tcx> CodegenCx<'a, 'tcx> {
297
293
const_cstr_cache : RefCell :: new ( FxHashMap ( ) ) ,
298
294
const_unsized : RefCell :: new ( FxHashMap ( ) ) ,
299
295
const_globals : RefCell :: new ( FxHashMap ( ) ) ,
300
- statics : RefCell :: new ( FxHashMap ( ) ) ,
301
296
statics_to_rauw : RefCell :: new ( Vec :: new ( ) ) ,
302
297
used_statics : RefCell :: new ( Vec :: new ( ) ) ,
303
298
lltypes : RefCell :: new ( FxHashMap ( ) ) ,
0 commit comments