summary refs log tree commit diff
path: root/compiler/rustc_codegen_cranelift
diff options
context:
space:
mode:
authorbjorn3 <bjorn3@users.noreply.github.com>2022-05-13 10:32:03 +0000
committerbjorn3 <bjorn3@users.noreply.github.com>2022-06-06 12:30:10 +0000
commit02162c4163f5d1a0e3dc8b552aafaa92d652b279 (patch)
treea0128bf5a074d9063575f7cea8c373065a0884be /compiler/rustc_codegen_cranelift
parent85136dbe56dbbd7cdbcb27886a03807ea265ecd1 (diff)
downloadrust-02162c4163f5d1a0e3dc8b552aafaa92d652b279.tar.gz
rust-02162c4163f5d1a0e3dc8b552aafaa92d652b279.zip
Rename CodegenUnit::work_product to previous_work_product
It returns the previous work product or panics if there is none. This rename
makes the purpose of this method clearer.
Diffstat (limited to 'compiler/rustc_codegen_cranelift')
-rw-r--r--compiler/rustc_codegen_cranelift/src/driver/aot.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_codegen_cranelift/src/driver/aot.rs b/compiler/rustc_codegen_cranelift/src/driver/aot.rs
index 5e1e1c81d26..0faf1221c83 100644
--- a/compiler/rustc_codegen_cranelift/src/driver/aot.rs
+++ b/compiler/rustc_codegen_cranelift/src/driver/aot.rs
@@ -85,7 +85,7 @@ fn reuse_workproduct_for_cgu(
     work_products: &mut FxHashMap<WorkProductId, WorkProduct>,
 ) -> CompiledModule {
     let mut object = None;
-    let work_product = cgu.work_product(tcx);
+    let work_product = cgu.previous_work_product(tcx);
     if let Some(saved_file) = &work_product.saved_file {
         let obj_out =
             tcx.output_filenames(()).temp_path(OutputType::Object, Some(cgu.name().as_str()));