mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Plumb Module Fingerprints Into ModuleDepGraphFactory
This commit is contained in:
@@ -499,19 +499,10 @@ void FrontendSourceFileDepGraphFactory::addAllUsedDecls() {
|
||||
|
||||
ModuleDepGraphFactory::ModuleDepGraphFactory(const ModuleDecl *Mod,
|
||||
bool emitDot)
|
||||
: AbstractSourceFileDepGraphFactory(Mod->getASTContext().hadError(),
|
||||
Mod->getNameStr(), Fingerprint::ZERO(),
|
||||
emitDot, Mod->getASTContext().Diags),
|
||||
|
||||
Mod(Mod) {
|
||||
// Since a fingerprint only summarizes the state of the module but not
|
||||
// the state of its fingerprinted sub-declarations, and since a module
|
||||
// contains no state other than sub-declarations, its fingerprint does not
|
||||
// matter and can just be some arbitrary value. Should it be the case that a
|
||||
// change in a declaration that does not have a fingerprint must cause
|
||||
// a rebuild of a file outside of the module, this assumption will need
|
||||
// to be revisited.
|
||||
}
|
||||
: AbstractSourceFileDepGraphFactory(
|
||||
Mod->getASTContext().hadError(), Mod->getNameStr(),
|
||||
Mod->getFingerprint(), emitDot, Mod->getASTContext().Diags),
|
||||
Mod(Mod) {}
|
||||
|
||||
void ModuleDepGraphFactory::addAllDefinedDecls() {
|
||||
// TODO: express the multiple provides and depends streams with variadic
|
||||
|
||||
Reference in New Issue
Block a user