Merge remote-tracking branch 'origin/main' into rebranch

This commit is contained in:
swift-ci
2022-06-10 15:33:41 -07:00
14 changed files with 191 additions and 24 deletions

View File

@@ -1727,6 +1727,13 @@ static bool performCompileStepsPostSILGen(CompilerInstance &Instance,
if (validateTBDIfNeeded(Invocation, MSF, *IRModule.getModule()))
return true;
if (IRGenOpts.UseSingleModuleLLVMEmission) {
// Pretend the other files that drivers/build systems expect exist by
// creating empty files.
if (writeEmptyOutputFilesFor(Context, ParallelOutputFilenames, IRGenOpts))
return true;
}
return generateCode(Instance, OutputFilename, IRModule.getModule(),
HashGlobal);
}