Remove more Session
methods that duplicate DiagCtxt
methods.
This commit is contained in:
parent
7e213fe428
commit
93c86f78b2
3 changed files with 4 additions and 4 deletions
|
@ -108,7 +108,7 @@ impl OngoingCodegen {
|
||||||
|
|
||||||
self.concurrency_limiter.finished();
|
self.concurrency_limiter.finished();
|
||||||
|
|
||||||
sess.abort_if_errors();
|
sess.dcx().abort_if_errors();
|
||||||
|
|
||||||
(
|
(
|
||||||
CodegenResults {
|
CodegenResults {
|
||||||
|
|
|
@ -151,7 +151,7 @@ pub(crate) fn run_jit(tcx: TyCtxt<'_>, backend_config: BackendConfig) -> ! {
|
||||||
tcx.dcx().fatal("Inline asm is not supported in JIT mode");
|
tcx.dcx().fatal("Inline asm is not supported in JIT mode");
|
||||||
}
|
}
|
||||||
|
|
||||||
tcx.sess.abort_if_errors();
|
tcx.dcx().abort_if_errors();
|
||||||
|
|
||||||
jit_module.finalize_definitions().unwrap();
|
jit_module.finalize_definitions().unwrap();
|
||||||
unsafe { cx.unwind_context.register_jit(&jit_module) };
|
unsafe { cx.unwind_context.register_jit(&jit_module) };
|
||||||
|
@ -338,7 +338,7 @@ fn dep_symbol_lookup_fn(
|
||||||
.collect::<Box<[_]>>(),
|
.collect::<Box<[_]>>(),
|
||||||
);
|
);
|
||||||
|
|
||||||
sess.abort_if_errors();
|
sess.dcx().abort_if_errors();
|
||||||
|
|
||||||
Box::new(move |sym_name| {
|
Box::new(move |sym_name| {
|
||||||
for dylib in &*imported_dylibs {
|
for dylib in &*imported_dylibs {
|
||||||
|
|
|
@ -204,7 +204,7 @@ impl CodegenBackend for CraneliftCodegenBackend {
|
||||||
metadata: EncodedMetadata,
|
metadata: EncodedMetadata,
|
||||||
need_metadata_module: bool,
|
need_metadata_module: bool,
|
||||||
) -> Box<dyn Any> {
|
) -> Box<dyn Any> {
|
||||||
tcx.sess.abort_if_errors();
|
tcx.dcx().abort_if_errors();
|
||||||
let config = self.config.borrow().clone().unwrap();
|
let config = self.config.borrow().clone().unwrap();
|
||||||
match config.codegen_mode {
|
match config.codegen_mode {
|
||||||
CodegenMode::Aot => driver::aot::run_aot(tcx, config, metadata, need_metadata_module),
|
CodegenMode::Aot => driver::aot::run_aot(tcx, config, metadata, need_metadata_module),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue