]> git.lizzy.rs Git - rust.git/commit
Extend DepGraph so it can track "work-products"
authorNiko Matsakis <niko@alum.mit.edu>
Thu, 21 Jul 2016 16:33:23 +0000 (12:33 -0400)
committerNiko Matsakis <niko@alum.mit.edu>
Thu, 28 Jul 2016 16:05:04 +0000 (12:05 -0400)
commit2b38c4bdea7acf72b8322660de5a4f86d561a65c
tree6f7e4e39127c96be68f1b98f3e8ecbb97fb2ebe9
parentcec262e55a92ad15196c4ea6d490fb6ef6bccab4
Extend DepGraph so it can track "work-products"

A work product right now is just a `.o` file. In the future it probably
includes other kinds of files, such as `.bc` files saving the
unoptimized LLVM IR.

However, because WorkProductIds must be independent of DefIds, so that
they don't need translation, this system may not be suitable *as is* for
storing fine-grained information (such as the MIR for individual defs),
as it was originally intended. We will want to refactor some for that.
src/librustc/dep_graph/dep_node.rs
src/librustc/dep_graph/graph.rs
src/librustc/dep_graph/mod.rs