SIL: Share TypeConverter between SILModules in batch mode

This commit is contained in:
Slava Pestov
2019-08-27 21:58:38 -04:00
parent d434188157
commit 01e65e18c4
16 changed files with 71 additions and 37 deletions

View File

@@ -1000,7 +1000,8 @@ ASTUnitRef ASTProducer::createASTUnit(
if (auto SF = CompIns.getPrimarySourceFile()) {
SILOptions SILOpts = Invocation.getSILOptions();
std::unique_ptr<SILModule> SILMod = performSILGeneration(*SF, SILOpts);
auto &TC = CompIns.getSILTypes();
std::unique_ptr<SILModule> SILMod = performSILGeneration(*SF, TC, SILOpts);
runSILDiagnosticPasses(*SILMod);
}
}