mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[TBDGen] Enable TBD generation after -typecheck
This commit is contained in:
@@ -979,6 +979,9 @@ static bool performCompile(CompilerInstance &Instance,
|
||||
return true;
|
||||
}
|
||||
|
||||
if (writeTBDIfNeeded(Invocation, Instance))
|
||||
return true;
|
||||
|
||||
// FIXME: This is still a lousy approximation of whether the module file will
|
||||
// be externally consumed.
|
||||
bool moduleIsPublic =
|
||||
@@ -1001,9 +1004,6 @@ static bool performCompile(CompilerInstance &Instance,
|
||||
return hadPrintAsObjCError || hadEmitIndexDataError || Context.hadError();
|
||||
}
|
||||
|
||||
if (writeTBDIfNeeded(Invocation, Instance))
|
||||
return true;
|
||||
|
||||
assert(FrontendOptions::doesActionGenerateSIL(Action) &&
|
||||
"All actions not requiring SILGen must have been handled!");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user