]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc_codegen_utils/codegen_backend.rs
Rollup merge of #68705 - BijanT:ll_remove, r=Mark-Simulacrum
[rust.git] / src / librustc_codegen_utils / codegen_backend.rs
index fecb3986e7e0899b26b7a18fed784a354aa96d44..96166e04c2e3c89d6d47db3686c809206e52a4f4 100644 (file)
@@ -43,11 +43,22 @@ fn codegen_crate<'tcx>(
     /// # Panics
     ///
     /// Panics when the passed `Box<dyn Any>` was not returned by `codegen_backend`.
-    fn join_codegen_and_link(
+    fn join_codegen(
         &self,
         ongoing_codegen: Box<dyn Any>,
         sess: &Session,
         dep_graph: &DepGraph,
+    ) -> Result<Box<dyn Any>, ErrorReported>;
+
+    /// This is called on the returned `Box<dyn Any>` from `join_codegen`
+    ///
+    /// # Panics
+    ///
+    /// Panics when the passed `Box<dyn Any>` was not returned by `join_codegen`.
+    fn link(
+        &self,
+        sess: &Session,
+        codegen_results: Box<dyn Any>,
         outputs: &OutputFilenames,
     ) -> Result<(), ErrorReported>;
 }