rustc: replace TyCtxt<'tcx, 'gcx, 'tcx>
with TyCtxt<'gcx, 'tcx>
.
This commit is contained in:
parent
2441253508
commit
17cdd356da
295 changed files with 1433 additions and 1433 deletions
|
@ -103,13 +103,13 @@ mod va_arg;
|
|||
pub struct LlvmCodegenBackend(());
|
||||
|
||||
impl ExtraBackendMethods for LlvmCodegenBackend {
|
||||
fn new_metadata(&self, tcx: TyCtxt<'_, '_, '_>, mod_name: &str) -> ModuleLlvm {
|
||||
fn new_metadata(&self, tcx: TyCtxt<'_, '_>, mod_name: &str) -> ModuleLlvm {
|
||||
ModuleLlvm::new_metadata(tcx, mod_name)
|
||||
}
|
||||
|
||||
fn write_compressed_metadata<'b, 'gcx>(
|
||||
&self,
|
||||
tcx: TyCtxt<'gcx, 'gcx, 'gcx>,
|
||||
tcx: TyCtxt<'gcx, 'gcx>,
|
||||
metadata: &EncodedMetadata,
|
||||
llvm_module: &mut ModuleLlvm
|
||||
) {
|
||||
|
@ -117,7 +117,7 @@ impl ExtraBackendMethods for LlvmCodegenBackend {
|
|||
}
|
||||
fn codegen_allocator<'b, 'gcx>(
|
||||
&self,
|
||||
tcx: TyCtxt<'gcx, 'gcx, 'gcx>,
|
||||
tcx: TyCtxt<'gcx, 'gcx>,
|
||||
mods: &mut ModuleLlvm,
|
||||
kind: AllocatorKind
|
||||
) {
|
||||
|
@ -125,7 +125,7 @@ impl ExtraBackendMethods for LlvmCodegenBackend {
|
|||
}
|
||||
fn compile_codegen_unit<'a, 'tcx: 'a>(
|
||||
&self,
|
||||
tcx: TyCtxt<'tcx, 'tcx, 'tcx>,
|
||||
tcx: TyCtxt<'tcx, 'tcx>,
|
||||
cgu_name: InternedString,
|
||||
) {
|
||||
base::compile_codegen_unit(tcx, cgu_name);
|
||||
|
@ -286,7 +286,7 @@ impl CodegenBackend for LlvmCodegenBackend {
|
|||
|
||||
fn codegen_crate<'b, 'tcx>(
|
||||
&self,
|
||||
tcx: TyCtxt<'tcx, 'tcx, 'tcx>,
|
||||
tcx: TyCtxt<'tcx, 'tcx>,
|
||||
metadata: EncodedMetadata,
|
||||
need_metadata_module: bool,
|
||||
rx: mpsc::Receiver<Box<dyn Any + Send>>
|
||||
|
@ -365,7 +365,7 @@ unsafe impl Send for ModuleLlvm { }
|
|||
unsafe impl Sync for ModuleLlvm { }
|
||||
|
||||
impl ModuleLlvm {
|
||||
fn new(tcx: TyCtxt<'_, '_, '_>, mod_name: &str) -> Self {
|
||||
fn new(tcx: TyCtxt<'_, '_>, mod_name: &str) -> Self {
|
||||
unsafe {
|
||||
let llcx = llvm::LLVMRustContextCreate(tcx.sess.fewer_names());
|
||||
let llmod_raw = context::create_module(tcx, llcx, mod_name) as *const _;
|
||||
|
@ -377,7 +377,7 @@ impl ModuleLlvm {
|
|||
}
|
||||
}
|
||||
|
||||
fn new_metadata(tcx: TyCtxt<'_, '_, '_>, mod_name: &str) -> Self {
|
||||
fn new_metadata(tcx: TyCtxt<'_, '_>, mod_name: &str) -> Self {
|
||||
unsafe {
|
||||
let llcx = llvm::LLVMRustContextCreate(tcx.sess.fewer_names());
|
||||
let llmod_raw = context::create_module(tcx, llcx, mod_name) as *const _;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue