[NFC] Inline inputFileKindCanHaveTBDValidated

This commit is contained in:
Robert Widmann
2020-09-11 21:12:26 -06:00
parent 513d108a0e
commit 8b725d8713
3 changed files with 4 additions and 21 deletions

View File

@@ -2104,7 +2104,10 @@ static bool validateTBDIfNeeded(const CompilerInvocation &Invocation,
// If we can't validate the given input file, bail early. This covers cases
// like passing raw SIL as a primary file.
if (!inputFileKindCanHaveTBDValidated(Invocation.getInputKind())) {
const auto &IO = Invocation.getFrontendOptions().InputsAndOutputs;
// FIXME: This would be a good test of the interface format.
if (IO.shouldTreatAsModuleInterface() || IO.shouldTreatAsSIL() ||
IO.shouldTreatAsLLVM() || IO.shouldTreatAsObjCHeader()) {
return false;
}