@@ -1132,9 +1132,9 @@ struct ParserUnit::Implementation {
1132
1132
std::unique_ptr<Parser> TheParser;
1133
1133
1134
1134
Implementation (SourceManager &SM, SourceFileKind SFKind, unsigned BufferID,
1135
- const LangOptions &Opts, const TypeCheckerOptions &TyOpts,
1136
- const SILOptions &silOpts, StringRef ModuleName)
1137
- : LangOpts(Opts), TypeCheckerOpts(TyOpts), SILOpts(silOpts ), Diags(SM),
1135
+ const LangOptions &Opts, StringRef ModuleName)
1136
+ : LangOpts(Opts), TypeCheckerOpts(TypeCheckerOptions()),
1137
+ SILOpts (SILOptions() ), Diags(SM),
1138
1138
Ctx(*ASTContext::get (LangOpts, TypeCheckerOpts, SILOpts, SearchPathOpts,
1139
1139
clangImporterOpts, symbolGraphOpts, CASOpts, SM,
1140
1140
Diags)) {
@@ -1156,23 +1156,19 @@ struct ParserUnit::Implementation {
1156
1156
1157
1157
ParserUnit::ParserUnit (SourceManager &SM, SourceFileKind SFKind,
1158
1158
unsigned BufferID)
1159
- : ParserUnit(SM, SFKind, BufferID, LangOptions(), TypeCheckerOptions(),
1160
- SILOptions(), "input") {}
1159
+ : ParserUnit(SM, SFKind, BufferID, LangOptions(), "input") {}
1161
1160
1162
1161
ParserUnit::ParserUnit (SourceManager &SM, SourceFileKind SFKind,
1163
1162
unsigned BufferID, const LangOptions &LangOpts,
1164
- const TypeCheckerOptions &TypeCheckOpts,
1165
- const SILOptions &SILOpts, StringRef ModuleName)
1166
- : Impl(*new Implementation(SM, SFKind, BufferID, LangOpts, TypeCheckOpts,
1167
- SILOpts, ModuleName)) {
1163
+ StringRef ModuleName)
1164
+ : Impl(*new Implementation(SM, SFKind, BufferID, LangOpts, ModuleName)) {
1168
1165
Impl.TheParser .reset (new Parser (BufferID, *Impl.SF , /* SIL=*/ nullptr ,
1169
1166
/* PersistentState=*/ nullptr ));
1170
1167
}
1171
1168
1172
1169
ParserUnit::ParserUnit (SourceManager &SM, SourceFileKind SFKind,
1173
1170
unsigned BufferID, unsigned Offset, unsigned EndOffset)
1174
- : Impl(*new Implementation(SM, SFKind, BufferID, LangOptions(),
1175
- TypeCheckerOptions(), SILOptions(), "input")) {
1171
+ : Impl(*new Implementation(SM, SFKind, BufferID, LangOptions(), "input")) {
1176
1172
1177
1173
std::unique_ptr<Lexer> Lex;
1178
1174
Lex.reset (new Lexer (Impl.LangOpts , SM,
0 commit comments