@@ -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;
@@ -77,9 +76,6 @@ pub struct CodegenCx<'a, 'tcx: 'a> {
7776 /// Cache of emitted const globals (value -> global)
7877 pub const_globals : RefCell < FxHashMap < & ' a Value , & ' a Value > > ,
7978
80- /// Mapping from static definitions to their DefId's.
81- pub statics : RefCell < FxHashMap < & ' a Value , DefId > > ,
82-
8379 /// List of globals for static variables which need to be passed to the
8480 /// LLVM function ReplaceAllUsesWith (RAUW) when codegen is complete.
8581 /// (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