@@ -583,12 +583,11 @@ void ASTContext::operator delete(void *Data) throw() {
583
583
}
584
584
585
585
ASTContext *ASTContext::get (LangOptions &langOpts,
586
- TypeCheckerOptions &typeckOpts,
586
+ TypeCheckerOptions &typeckOpts, SILOptions &silOpts,
587
587
SearchPathOptions &SearchPathOpts,
588
588
ClangImporterOptions &ClangImporterOpts,
589
589
symbolgraphgen::SymbolGraphOptions &SymbolGraphOpts,
590
- SourceManager &SourceMgr,
591
- DiagnosticEngine &Diags) {
590
+ SourceManager &SourceMgr, DiagnosticEngine &Diags) {
592
591
// If more than two data structures are concatentated, then the aggregate
593
592
// size math needs to become more complicated due to per-struct alignment
594
593
// constraints.
@@ -600,33 +599,28 @@ ASTContext *ASTContext::get(LangOptions &langOpts,
600
599
llvm::alignAddr (impl, llvm::Align (alignof (Implementation))));
601
600
new (impl) Implementation ();
602
601
return new (mem)
603
- ASTContext (langOpts, typeckOpts, SearchPathOpts, ClangImporterOpts ,
604
- SymbolGraphOpts, SourceMgr, Diags);
602
+ ASTContext (langOpts, typeckOpts, silOpts, SearchPathOpts ,
603
+ ClangImporterOpts, SymbolGraphOpts, SourceMgr, Diags);
605
604
}
606
605
607
606
ASTContext::ASTContext (LangOptions &langOpts, TypeCheckerOptions &typeckOpts,
608
- SearchPathOptions &SearchPathOpts,
607
+ SILOptions &silOpts, SearchPathOptions &SearchPathOpts,
609
608
ClangImporterOptions &ClangImporterOpts,
610
609
symbolgraphgen::SymbolGraphOptions &SymbolGraphOpts,
611
610
SourceManager &SourceMgr, DiagnosticEngine &Diags)
612
- : LangOpts(langOpts),
613
- TypeCheckerOpts (typeckOpts),
614
- SearchPathOpts(SearchPathOpts),
615
- ClangImporterOpts(ClangImporterOpts),
616
- SymbolGraphOpts(SymbolGraphOpts),
617
- SourceMgr(SourceMgr), Diags(Diags),
618
- evaluator(Diags, langOpts),
619
- TheBuiltinModule(createBuiltinModule(*this )),
620
- StdlibModuleName(getIdentifier(STDLIB_NAME)),
621
- SwiftShimsModuleName(getIdentifier(SWIFT_SHIMS_NAME)),
622
- TheErrorType(
623
- new (*this , AllocationArena::Permanent)
624
- ErrorType(*this , Type(), RecursiveTypeProperties::HasError)),
625
- TheUnresolvedType(new (*this , AllocationArena::Permanent)
626
- UnresolvedType(*this )),
627
- TheEmptyTupleType(TupleType::get(ArrayRef<TupleTypeElt>(), *this)),
628
- TheAnyType(ProtocolCompositionType::get(*this , ArrayRef<Type>(),
629
- /* HasExplicitAnyObject=*/ false)),
611
+ : LangOpts(langOpts), TypeCheckerOpts(typeckOpts), SILOpts(silOpts),
612
+ SearchPathOpts (SearchPathOpts), ClangImporterOpts(ClangImporterOpts),
613
+ SymbolGraphOpts(SymbolGraphOpts), SourceMgr(SourceMgr), Diags(Diags),
614
+ evaluator(Diags, langOpts), TheBuiltinModule(createBuiltinModule(*this )),
615
+ StdlibModuleName(getIdentifier(STDLIB_NAME)),
616
+ SwiftShimsModuleName(getIdentifier(SWIFT_SHIMS_NAME)),
617
+ TheErrorType(new (*this , AllocationArena::Permanent) ErrorType(
618
+ *this , Type(), RecursiveTypeProperties::HasError)),
619
+ TheUnresolvedType(new (*this , AllocationArena::Permanent)
620
+ UnresolvedType(*this )),
621
+ TheEmptyTupleType(TupleType::get(ArrayRef<TupleTypeElt>(), *this)),
622
+ TheAnyType(ProtocolCompositionType::get(*this , ArrayRef<Type>(),
623
+ /* HasExplicitAnyObject=*/ false)),
630
624
#define SINGLETON_TYPE (SHORT_ID, ID ) \
631
625
The##SHORT_ID##Type(new (*this , AllocationArena::Permanent) \
632
626
ID##Type(*this )),
0 commit comments