mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[Incremental] Plumb -verify-incremental-dependencies Through The Frontend and Driver
When enabled at the driver level, the frontends will inherit the flag. For each frontend that recieves this option, all primaries will have their reference dependencies validated.
This commit is contained in:
@@ -1480,6 +1480,12 @@ computeDeallocatableResources(const CompilerInvocation &Invocation,
|
||||
return DeallocatableResources::SILModule;
|
||||
}
|
||||
|
||||
// Verifying incremental dependencies relies on access to the Swift Module's
|
||||
// source files. We can still free the SIL module, though.
|
||||
if (Invocation.getFrontendOptions().VerifyDependencies) {
|
||||
return DeallocatableResources::SILModule;
|
||||
}
|
||||
|
||||
// If there are multiple primary inputs it is too soon to free
|
||||
// the ASTContext, etc.. OTOH, if this compilation generates code for > 1
|
||||
// primary input, then freeing it after processing the last primary is
|
||||
|
||||
Reference in New Issue
Block a user