Swap InputFileKind for ParseInputMode

Tying InputFile to this option meant that every input that was not one of the explictly-blessed kinds was modeled as a Swift file.

With the new InputFile that infers file kinds, we no longer need CompilerInvocation::setInputKind
This commit is contained in:
Robert Widmann
2020-09-11 21:20:28 -06:00
parent ac0814e4c8
commit 9fd5918786
10 changed files with 28 additions and 42 deletions

View File

@@ -1142,7 +1142,6 @@ void InterfaceSubContextDelegateImpl::inheritOptionsForBuildingInterface(
genericSubInvocation.setSDKPath(SearchPathOpts.SDKPath);
}
genericSubInvocation.setInputKind(InputFileKind::SwiftModuleInterface);
if (!SearchPathOpts.RuntimeResourcePath.empty()) {
genericSubInvocation.setRuntimeResourcePath(SearchPathOpts.RuntimeResourcePath);
}