Move crate_name field from OngoingCodegen to CrateInfo

This commit is contained in:
bjorn3 2021-05-29 17:37:38 +02:00
parent 646c6043a7
commit dbdeafbc26
2 changed files with 1 additions and 2 deletions

View File

@ -292,7 +292,6 @@ pub(crate) fn run_aot(
Box::new((
CodegenResults {
crate_name: tcx.crate_name(LOCAL_CRATE),
modules,
allocator_module,
metadata_module,

View File

@ -218,7 +218,7 @@ impl CodegenBackend for CraneliftCodegenBackend {
sess,
&codegen_results,
outputs,
&codegen_results.crate_name.as_str(),
&codegen_results.crate_info.local_crate_name.as_str(),
);
Ok(())