@@ -60,7 +60,7 @@ class LangOptions;
6060class MacroDefinitionRecord ;
6161class MacroInfo ;
6262class Module ;
63- class InMemoryModuleCache ;
63+ class ModuleCache ;
6464class ModuleFileExtension ;
6565class ModuleFileExtensionWriter ;
6666class NamedDecl ;
@@ -117,7 +117,7 @@ class ASTWriter : public ASTDeserializationListener,
117117 const SmallVectorImpl<char > &Buffer;
118118
119119 // / The PCM manager which manages memory buffers for pcm files.
120- InMemoryModuleCache &ModuleCache ;
120+ ModuleCache &ModCache ;
121121
122122 // / The preprocessor we're writing.
123123 Preprocessor *PP = nullptr ;
@@ -638,7 +638,7 @@ class ASTWriter : public ASTDeserializationListener,
638638 // / Create a new precompiled header writer that outputs to
639639 // / the given bitstream.
640640 ASTWriter (llvm::BitstreamWriter &Stream, SmallVectorImpl<char > &Buffer,
641- InMemoryModuleCache &ModuleCache ,
641+ ModuleCache &ModCache ,
642642 ArrayRef<std::shared_ptr<ModuleFileExtension>> Extensions,
643643 bool IncludeTimestamps = true , bool BuildingImplicitModule = false ,
644644 bool GeneratingReducedBMI = false );
@@ -948,9 +948,8 @@ class PCHGenerator : public SemaConsumer {
948948 virtual Module *getEmittingModule (ASTContext &Ctx);
949949
950950public:
951- PCHGenerator (Preprocessor &PP, InMemoryModuleCache &ModuleCache,
952- StringRef OutputFile, StringRef isysroot,
953- std::shared_ptr<PCHBuffer> Buffer,
951+ PCHGenerator (Preprocessor &PP, ModuleCache &ModCache, StringRef OutputFile,
952+ StringRef isysroot, std::shared_ptr<PCHBuffer> Buffer,
954953 ArrayRef<std::shared_ptr<ModuleFileExtension>> Extensions,
955954 bool AllowASTWithErrors = false , bool IncludeTimestamps = true ,
956955 bool BuildingImplicitModule = false ,
@@ -972,13 +971,13 @@ class CXX20ModulesGenerator : public PCHGenerator {
972971protected:
973972 virtual Module *getEmittingModule (ASTContext &Ctx) override ;
974973
975- CXX20ModulesGenerator (Preprocessor &PP, InMemoryModuleCache &ModuleCache ,
974+ CXX20ModulesGenerator (Preprocessor &PP, ModuleCache &ModCache ,
976975 StringRef OutputFile, bool GeneratingReducedBMI);
977976
978977public:
979- CXX20ModulesGenerator (Preprocessor &PP, InMemoryModuleCache &ModuleCache ,
978+ CXX20ModulesGenerator (Preprocessor &PP, ModuleCache &ModCache ,
980979 StringRef OutputFile)
981- : CXX20ModulesGenerator(PP, ModuleCache , OutputFile,
980+ : CXX20ModulesGenerator(PP, ModCache , OutputFile,
982981 /* GeneratingReducedBMI=*/ false ) {}
983982
984983 void HandleTranslationUnit (ASTContext &Ctx) override ;
@@ -988,9 +987,9 @@ class ReducedBMIGenerator : public CXX20ModulesGenerator {
988987 void anchor () override ;
989988
990989public:
991- ReducedBMIGenerator (Preprocessor &PP, InMemoryModuleCache &ModuleCache ,
990+ ReducedBMIGenerator (Preprocessor &PP, ModuleCache &ModCache ,
992991 StringRef OutputFile)
993- : CXX20ModulesGenerator(PP, ModuleCache , OutputFile,
992+ : CXX20ModulesGenerator(PP, ModCache , OutputFile,
994993 /* GeneratingReducedBMI=*/ true ) {}
995994};
996995
0 commit comments