Merge remote-tracking branch 'upstream/master' into HEAD

This commit is contained in:
Nathan Hawes
2020-08-21 22:23:58 -07:00
29 changed files with 470 additions and 104 deletions

View File

@@ -1752,7 +1752,8 @@ static void performEndOfPipelineActions(CompilerInstance &Instance) {
/// \param Instance Will be reset after performIRGeneration when the verifier
/// mode is NoVerify and there were no errors.
/// \returns true on error
static bool performCompile(CompilerInstance &Instance,
static bool performCompile(CompilerInvocation &Invok,
CompilerInstance &Instance,
ArrayRef<const char *> Args,
int &ReturnValue,
FrontendObserver *observer) {
@@ -1840,7 +1841,8 @@ static bool performCompile(CompilerInstance &Instance,
if (batchScanInput.empty())
return finishPipeline(scanDependencies(Instance));
else
return finishPipeline(batchScanModuleDependencies(Instance,
return finishPipeline(batchScanModuleDependencies(Invok,
Instance,
batchScanInput));
}
@@ -2653,7 +2655,7 @@ int swift::performFrontend(ArrayRef<const char *> Args,
}
int ReturnValue = 0;
bool HadError = performCompile(*Instance, Args, ReturnValue, observer);
bool HadError = performCompile(Invocation, *Instance, Args, ReturnValue, observer);
if (verifierEnabled) {
DiagnosticEngine &diags = Instance->getDiags();