@@ -757,7 +757,8 @@ ASTContext *ASTContext::get(
757
757
SILOptions &silOpts, SearchPathOptions &SearchPathOpts,
758
758
ClangImporterOptions &ClangImporterOpts,
759
759
symbolgraphgen::SymbolGraphOptions &SymbolGraphOpts, CASOptions &casOpts,
760
- SourceManager &SourceMgr, DiagnosticEngine &Diags,
760
+ SerializationOptions &serializationOpts, SourceManager &SourceMgr,
761
+ DiagnosticEngine &Diags,
761
762
llvm::IntrusiveRefCntPtr<llvm::vfs::OutputBackend> OutputBackend) {
762
763
// If more than two data structures are concatentated, then the aggregate
763
764
// size math needs to become more complicated due to per-struct alignment
@@ -771,26 +772,28 @@ ASTContext *ASTContext::get(
771
772
new (impl) Implementation ();
772
773
return new (mem)
773
774
ASTContext (langOpts, typecheckOpts, silOpts, SearchPathOpts,
774
- ClangImporterOpts, SymbolGraphOpts, casOpts, SourceMgr, Diags ,
775
- std::move (OutputBackend));
775
+ ClangImporterOpts, SymbolGraphOpts, casOpts, serializationOpts ,
776
+ SourceMgr, Diags, std::move (OutputBackend));
776
777
}
777
778
778
779
ASTContext::ASTContext (
779
780
LangOptions &langOpts, TypeCheckerOptions &typecheckOpts,
780
781
SILOptions &silOpts, SearchPathOptions &SearchPathOpts,
781
782
ClangImporterOptions &ClangImporterOpts,
782
783
symbolgraphgen::SymbolGraphOptions &SymbolGraphOpts, CASOptions &casOpts,
783
- SourceManager &SourceMgr, DiagnosticEngine &Diags,
784
+ SerializationOptions &SerializationOpts, SourceManager &SourceMgr,
785
+ DiagnosticEngine &Diags,
784
786
llvm::IntrusiveRefCntPtr<llvm::vfs::OutputBackend> OutBackend)
785
787
: LangOpts(langOpts), TypeCheckerOpts(typecheckOpts), SILOpts(silOpts),
786
788
SearchPathOpts (SearchPathOpts), ClangImporterOpts(ClangImporterOpts),
787
- SymbolGraphOpts(SymbolGraphOpts), CASOpts(casOpts), SourceMgr(SourceMgr),
788
- Diags(Diags), OutputBackend(std::move(OutBackend)),
789
- evaluator(Diags, langOpts), TheBuiltinModule(createBuiltinModule(*this )),
789
+ SymbolGraphOpts(SymbolGraphOpts), CASOpts(casOpts),
790
+ SerializationOpts(SerializationOpts), SourceMgr(SourceMgr), Diags(Diags),
791
+ OutputBackend(std::move(OutBackend)), evaluator(Diags, langOpts),
792
+ TheBuiltinModule(createBuiltinModule(*this )),
790
793
StdlibModuleName(getIdentifier(STDLIB_NAME)),
791
794
SwiftShimsModuleName(getIdentifier(SWIFT_SHIMS_NAME)),
792
795
blockListConfig(SourceMgr),
793
- TheErrorType(new (*this , AllocationArena::Permanent) ErrorType(
796
+ TheErrorType(new (*this , AllocationArena::Permanent) ErrorType(
794
797
*this , Type(), RecursiveTypeProperties::HasError)),
795
798
TheUnresolvedType(new (*this , AllocationArena::Permanent)
796
799
UnresolvedType(*this )),
@@ -801,17 +804,17 @@ ASTContext::ASTContext(
801
804
The##SHORT_ID##Type(new (*this , AllocationArena::Permanent) \
802
805
ID##Type(*this )),
803
806
#include " swift/AST/TypeNodes.def"
804
- TheIEEE32Type (new (*this , AllocationArena::Permanent)
807
+ TheIEEE32Type (new (*this , AllocationArena::Permanent)
805
808
BuiltinFloatType(BuiltinFloatType::IEEE32, *this )),
806
- TheIEEE64Type(new (*this , AllocationArena::Permanent)
809
+ TheIEEE64Type(new (*this , AllocationArena::Permanent)
807
810
BuiltinFloatType(BuiltinFloatType::IEEE64, *this )),
808
- TheIEEE16Type(new (*this , AllocationArena::Permanent)
811
+ TheIEEE16Type(new (*this , AllocationArena::Permanent)
809
812
BuiltinFloatType(BuiltinFloatType::IEEE16, *this )),
810
- TheIEEE80Type(new (*this , AllocationArena::Permanent)
813
+ TheIEEE80Type(new (*this , AllocationArena::Permanent)
811
814
BuiltinFloatType(BuiltinFloatType::IEEE80, *this )),
812
- TheIEEE128Type(new (*this , AllocationArena::Permanent)
815
+ TheIEEE128Type(new (*this , AllocationArena::Permanent)
813
816
BuiltinFloatType(BuiltinFloatType::IEEE128, *this )),
814
- ThePPC128Type(new (*this , AllocationArena::Permanent)
817
+ ThePPC128Type(new (*this , AllocationArena::Permanent)
815
818
BuiltinFloatType(BuiltinFloatType::PPC128, *this )) {
816
819
817
820
// Initialize all of the known identifiers.
0 commit comments