Teach SwiftModules To Embed Incremental Information

Take advantage of the binary swiftdeps serialization utliities built during #32131. Add a new optional information block to swiftdeps files. For now, don't actually serialize swiftdeps information.

Frontends will use this information to determine whether to write incremental dependencies across modules into their swiftdeps files. We will then teach the driver to deserialize the data from this section and integrate it into its incremental decision making.
This commit is contained in:
Robert Widmann
2020-09-24 19:22:39 -06:00
parent 8e73d213a0
commit d2e7bdcfab
11 changed files with 112 additions and 31 deletions

View File

@@ -238,7 +238,8 @@ int main(int argc, char *argv[]) {
return 1;
}
if (writeFineGrainedDependencyGraph(diags, options::OutputFilename, fg)) {
if (writeFineGrainedDependencyGraphToPath(
diags, options::OutputFilename, fg)) {
llvm::errs() << "Failed to write binary swiftdeps\n";
return 1;
}