Remove more Session
methods that duplicate DiagCtxt
methods.
This commit is contained in:
parent
8af3d8dcab
commit
8a9db25459
36 changed files with 62 additions and 74 deletions
|
@ -204,7 +204,7 @@ impl CodegenBackend for CraneliftCodegenBackend {
|
|||
metadata: EncodedMetadata,
|
||||
need_metadata_module: bool,
|
||||
) -> Box<dyn Any> {
|
||||
tcx.sess.abort_if_errors();
|
||||
tcx.dcx().abort_if_errors();
|
||||
let config = self.config.borrow().clone().unwrap();
|
||||
match config.codegen_mode {
|
||||
CodegenMode::Aot => driver::aot::run_aot(tcx, config, metadata, need_metadata_module),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue