[Frontend] Internalize createDependencyTracker

Expand the FrontendOptions to allow the enabling
of the dependency tracker for non-system
dependencies, and switch the previous clients of
`createDependencyTracker` over to using this
option. This ensures that the dependency tracker
is now set only during `CompilerInstance::setup`.
This commit is contained in:
Hamish Knight
2020-06-29 15:26:26 -07:00
parent bddcda6333
commit 7bc5440d17
13 changed files with 80 additions and 41 deletions

View File

@@ -793,7 +793,7 @@ static bool buildModuleFromInterface(CompilerInstance &Instance) {
PrebuiltCachePath, Invocation.getModuleName(), InputPath,
Invocation.getOutputFilename(),
FEOpts.SerializeModuleInterfaceDependencyHashes,
FEOpts.TrackSystemDeps, LoaderOpts);
FEOpts.shouldTrackSystemDependencies(), LoaderOpts);
}
static bool compileLLVMIR(CompilerInstance &Instance) {