Add a new SourceFileKind and InputFileKind for textual interfaces

And test this by tweaking the rules to allow functions without
definitions, like SIL files.
This commit is contained in:
Jordan Rose
2018-08-06 17:46:01 -07:00
parent 061204c704
commit d9e47650d5
13 changed files with 73 additions and 16 deletions

View File

@@ -71,6 +71,8 @@ SourceFileKind CompilerInvocation::getSourceFileKind() const {
return SourceFileKind::Library;
case InputFileKind::SwiftREPL:
return SourceFileKind::REPL;
case InputFileKind::SwiftModuleInterface:
return SourceFileKind::Interface;
case InputFileKind::SIL:
return SourceFileKind::SIL;
case InputFileKind::None: