Trigger SIL parsing from performSILGeneration

Rather than eagerly parsing an input .sil file
in `performSemaUpTo`, trigger it from
`performSILGeneration`. This will allow us to
remove the SILModule stored on the
CompilerInstance and will eventually allow the
various SIL tools to just call into
`performSILGeneration` without needing to call
`performSema`.
This commit is contained in:
Hamish Knight
2020-05-06 16:20:37 -07:00
parent fcb1dcaa4c
commit 11d8f70dec
3 changed files with 12 additions and 15 deletions

View File

@@ -814,13 +814,6 @@ void CompilerInstance::performSemaUpTo(SourceFile::ASTStage_t LimitStage) {
forEachFileToTypeCheck([&](SourceFile &SF) {
performTypeChecking(SF);
// Parse the SIL decls if needed.
// TODO: Requestify SIL parsing.
if (TheSILModule) {
SILParserState SILContext(TheSILModule.get());
parseSourceFileSIL(SF, &SILContext);
}
});
finishTypeChecking();