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