@@ -45,14 +45,14 @@ use abi::Abi;
45
45
/// There is one `CodegenCx` per compilation unit. Each one has its own LLVM
46
46
/// `llvm::Context` so that several compilation units may be optimized in parallel.
47
47
/// All other LLVM data structures in the `CodegenCx` are tied to that `llvm::Context`.
48
- pub struct CodegenCx < ' a , ' tcx : ' a , V = & ' a Value > {
49
- pub tcx : TyCtxt < ' a , ' tcx , ' tcx > ,
48
+ pub struct CodegenCx < ' ll , ' tcx : ' ll , V = & ' ll Value > {
49
+ pub tcx : TyCtxt < ' ll , ' tcx , ' tcx > ,
50
50
pub check_overflow : bool ,
51
51
pub use_dll_storage_attrs : bool ,
52
52
pub tls_model : llvm:: ThreadLocalMode ,
53
53
54
- pub llmod : & ' a llvm:: Module ,
55
- pub llcx : & ' a llvm:: Context ,
54
+ pub llmod : & ' ll llvm:: Module ,
55
+ pub llcx : & ' ll llvm:: Context ,
56
56
pub stats : RefCell < Stats > ,
57
57
pub codegen_unit : Arc < CodegenUnit < ' tcx > > ,
58
58
@@ -86,12 +86,12 @@ pub struct CodegenCx<'a, 'tcx: 'a, V = &'a Value> {
86
86
/// See http://llvm.org/docs/LangRef.html#the-llvm-used-global-variable for details
87
87
pub used_statics : RefCell < Vec < V > > ,
88
88
89
- pub lltypes : RefCell < FxHashMap < ( Ty < ' tcx > , Option < VariantIdx > ) , & ' a Type > > ,
90
- pub scalar_lltypes : RefCell < FxHashMap < Ty < ' tcx > , & ' a Type > > ,
89
+ pub lltypes : RefCell < FxHashMap < ( Ty < ' tcx > , Option < VariantIdx > ) , & ' ll Type > > ,
90
+ pub scalar_lltypes : RefCell < FxHashMap < Ty < ' tcx > , & ' ll Type > > ,
91
91
pub pointee_infos : RefCell < FxHashMap < ( Ty < ' tcx > , Size ) , Option < PointeeInfo > > > ,
92
- pub isize_ty : & ' a Type ,
92
+ pub isize_ty : & ' ll Type ,
93
93
94
- pub dbg_cx : Option < debuginfo:: CrateDebugContext < ' a , ' tcx > > ,
94
+ pub dbg_cx : Option < debuginfo:: CrateDebugContext < ' ll , ' tcx > > ,
95
95
96
96
eh_personality : Cell < Option < V > > ,
97
97
eh_unwind_resume : Cell < Option < V > > ,
@@ -103,8 +103,7 @@ pub struct CodegenCx<'a, 'tcx: 'a, V = &'a Value> {
103
103
local_gen_sym_counter : Cell < usize > ,
104
104
}
105
105
106
- impl < ' a , ' tcx > DepGraphSafe for CodegenCx < ' a , ' tcx > {
107
- }
106
+ impl < ' ll , ' tcx > DepGraphSafe for CodegenCx < ' ll , ' tcx > { }
108
107
109
108
pub fn get_reloc_model ( sess : & Session ) -> llvm:: RelocMode {
110
109
let reloc_model_arg = match sess. opts . cg . relocation_model {
@@ -217,11 +216,11 @@ pub unsafe fn create_module(
217
216
llmod
218
217
}
219
218
220
- impl < ' a , ' tcx > CodegenCx < ' a , ' tcx > {
221
- crate fn new ( tcx : TyCtxt < ' a , ' tcx , ' tcx > ,
219
+ impl < ' ll , ' tcx > CodegenCx < ' ll , ' tcx > {
220
+ crate fn new ( tcx : TyCtxt < ' ll , ' tcx , ' tcx > ,
222
221
codegen_unit : Arc < CodegenUnit < ' tcx > > ,
223
- llvm_module : & ' a :: ModuleLlvm )
224
- -> CodegenCx < ' a , ' tcx > {
222
+ llvm_module : & ' ll :: ModuleLlvm )
223
+ -> Self {
225
224
// An interesting part of Windows which MSVC forces our hand on (and
226
225
// apparently MinGW didn't) is the usage of `dllimport` and `dllexport`
227
226
// attributes in LLVM IR as well as native dependencies (in C these
0 commit comments