@@ -13,7 +13,6 @@ use common;
1313use llvm;
1414use rustc:: dep_graph:: DepGraphSafe ;
1515use rustc:: hir;
16- use rustc:: hir:: def_id:: DefId ;
1716use debuginfo;
1817use callee;
1918use base;
@@ -78,9 +77,6 @@ pub struct CodegenCx<'a, 'tcx: 'a> {
7877 /// Cache of emitted const globals (value -> global)
7978 pub const_globals : RefCell < FxHashMap < & ' a Value , & ' a Value > > ,
8079
81- /// Mapping from static definitions to their DefId's.
82- pub statics : RefCell < FxHashMap < & ' a Value , DefId > > ,
83-
8480 /// List of globals for static variables which need to be passed to the
8581 /// LLVM function ReplaceAllUsesWith (RAUW) when codegen is complete.
8682 /// (We have to make sure we don't invalidate any Values referring
@@ -297,7 +293,6 @@ impl<'a, 'tcx> CodegenCx<'a, 'tcx> {
297293 const_cstr_cache : RefCell :: new ( FxHashMap ( ) ) ,
298294 const_unsized : RefCell :: new ( FxHashMap ( ) ) ,
299295 const_globals : RefCell :: new ( FxHashMap ( ) ) ,
300- statics : RefCell :: new ( FxHashMap ( ) ) ,
301296 statics_to_rauw : RefCell :: new ( Vec :: new ( ) ) ,
302297 used_statics : RefCell :: new ( Vec :: new ( ) ) ,
303298 lltypes : RefCell :: new ( FxHashMap ( ) ) ,
0 commit comments