Move save_work_product_index call out of cg_llvm
This commit is contained in:
parent
46f2f023b0
commit
69f45cd965
3 changed files with 18 additions and 16 deletions
|
@ -356,10 +356,18 @@ pub struct Linker {
|
|||
|
||||
impl Linker {
|
||||
pub fn link(self) -> Result<()> {
|
||||
let codegen_results =
|
||||
self.codegen_backend.join_codegen(self.ongoing_codegen, &self.sess, &self.dep_graph)?;
|
||||
let prof = self.sess.prof.clone();
|
||||
let (codegen_results, work_products) =
|
||||
self.codegen_backend.join_codegen(self.ongoing_codegen, &self.sess)?;
|
||||
|
||||
self.sess.compile_status()?;
|
||||
|
||||
let sess = &self.sess;
|
||||
let dep_graph = self.dep_graph;
|
||||
sess.time("serialize_work_products", || {
|
||||
rustc_incremental::save_work_product_index(&sess, &dep_graph, work_products)
|
||||
});
|
||||
|
||||
let prof = self.sess.prof.clone();
|
||||
prof.generic_activity("drop_dep_graph").run(move || drop(dep_graph));
|
||||
|
||||
if !self
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue