Push TUKind into SourceFile (as InputKind).

Different SourceFiles in the same module will eventually have different
input kinds (at the very least Main vs. Library).

Swift SVN r9076
This commit is contained in:
Jordan Rose
2013-10-09 18:38:25 +00:00
parent 49cd5b1680
commit 09787207fc
14 changed files with 43 additions and 44 deletions

View File

@@ -109,7 +109,7 @@ bool CompilerInvocation::parseArgs(ArrayRef<const char *> Args,
break;
case OPT_parse_as_library:
setTUKind(TranslationUnit::Library);
setInputKind(SourceFile::Library);
break;
case OPT_parse_stdlib: