[TBDGen] Enable TBD generation after -typecheck

This commit is contained in:
Harlan Haskins
2018-08-15 15:33:26 -07:00
parent 14a7ae56db
commit 75e219543e
9 changed files with 44 additions and 3 deletions

View File

@@ -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!");