[FrontendTool] Only validate TBD for Swift input.

This commit is contained in:
Huon Wilson
2017-05-22 13:04:57 -07:00
parent 40ba18615b
commit 0eb849715f
3 changed files with 21 additions and 0 deletions

View File

@@ -925,6 +925,9 @@ static bool performCompile(CompilerInstance &Instance,
allSymbols = true;
LLVM_FALLTHROUGH;
case FrontendOptions::TBDValidationMode::MissingFromTBD: {
if (!inputFileKindCanHaveTBDValidated(Invocation.getInputKind()))
break;
auto hasMultipleIRGenThreads = Invocation.getSILOptions().NumThreads > 1;
bool error;
if (PrimarySourceFile)