Share more code between CleanNode() and RecomputeDirty().
authorMaxim Kalaev <maximus.ka@gmail.com>
Mon, 2 Sep 2013 22:32:19 +0000 (15:32 -0700)
committerNico Weber <nicolasweber@gmx.de>
Mon, 2 Sep 2013 22:32:19 +0000 (15:32 -0700)
commit41c6258ec1928cbcfc5642504cb9c2b3659fa897
tree5c13188a748ee68f36165e937d1e8675850af852
parentd7a46654a7be1a46a777a8d8a51f065ac98ce05d
Share more code between CleanNode() and RecomputeDirty().

Move a common loop into the new function RecomputeOutputsDirty().
Simplifies things a bit, and makes it harder for the restat path to have
different behavior from the regular path.

No dramatic behavior change (the restat path now also calls
RestatIfNecessary()).
src/build.cc
src/graph.cc
src/graph.h