mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user