@@ -353,7 +353,6 @@ class ASTIdentifierLookupTrait;
353353
354354// / The on-disk hash table(s) used for DeclContext name lookup.
355355struct  DeclContextLookupTable ;
356- struct  ModuleLocalLookupTable ;
357356
358357// / The on-disk hash table(s) used for specialization decls.
359358struct  LazySpecializationInfoLookupTable ;
@@ -524,14 +523,9 @@ class ASTReader
524523  // / in the chain.
525524  DeclUpdateOffsetsMap DeclUpdateOffsets;
526525
527-   struct  LookupBlockOffsets  {
528-     uint64_t  LexicalOffset;
529-     uint64_t  VisibleOffset;
530-     uint64_t  ModuleLocalOffset;
531-   };
532- 
533526  using  DelayedNamespaceOffsetMapTy =
534-       llvm::DenseMap<GlobalDeclID, LookupBlockOffsets>;
527+       llvm::DenseMap<GlobalDeclID, std::pair</* LexicalOffset*/   uint64_t ,
528+                                              /* VisibleOffset*/   uint64_t >>;
535529
536530  // / Mapping from global declaration IDs to the lexical and visible block
537531  // / offset for delayed namespace in reduced BMI.
@@ -637,9 +631,6 @@ class ASTReader
637631  // / Map from a DeclContext to its lookup tables.
638632  llvm::DenseMap<const  DeclContext *,
639633                 serialization::reader::DeclContextLookupTable> Lookups;
640-   llvm::DenseMap<const  DeclContext *,
641-                  serialization::reader::ModuleLocalLookupTable>
642-       ModuleLocalLookups;
643634
644635  using  SpecLookupTableTy =
645636      llvm::DenseMap<const  Decl *,
@@ -668,8 +659,6 @@ class ASTReader
668659  // / Updates to the visible declarations of declaration contexts that
669660  // / haven't been loaded yet.
670661  llvm::DenseMap<GlobalDeclID, DeclContextVisibleUpdates> PendingVisibleUpdates;
671-   llvm::DenseMap<GlobalDeclID, DeclContextVisibleUpdates>
672-       PendingModuleLocalVisibleUpdates;
673662
674663  using  SpecializationsUpdate = SmallVector<UpdateData, 1 >;
675664  using  SpecializationsUpdateMap =
@@ -707,8 +696,7 @@ class ASTReader
707696  // / Read the record that describes the visible contents of a DC.
708697  bool  ReadVisibleDeclContextStorage (ModuleFile &M,
709698                                     llvm::BitstreamCursor &Cursor,
710-                                      uint64_t  Offset, GlobalDeclID ID,
711-                                      bool  IsModuleLocal);
699+                                      uint64_t  Offset, GlobalDeclID ID);
712700
713701  bool  ReadSpecializations (ModuleFile &M, llvm::BitstreamCursor &Cursor,
714702                           uint64_t  Offset, Decl *D, bool  IsPartial);
@@ -1144,10 +1132,6 @@ class ASTReader
11441132  // / Number of visible decl contexts read/total.
11451133  unsigned  NumVisibleDeclContextsRead = 0 , TotalVisibleDeclContexts = 0 ;
11461134
1147-   // / Number of module local visible decl contexts read/total.
1148-   unsigned  NumModuleLocalVisibleDeclContexts = 0 ,
1149-            TotalModuleLocalVisibleDeclContexts = 0 ;
1150- 
11511135  // / Total size of modules, in bits, currently loaded
11521136  uint64_t  TotalModulesSizeInBits = 0 ;
11531137
@@ -1460,9 +1444,6 @@ class ASTReader
14601444  const  serialization::reader::DeclContextLookupTable *
14611445  getLoadedLookupTables (DeclContext *Primary) const ;
14621446
1463-   const  serialization::reader::ModuleLocalLookupTable *
1464-   getModuleLocalLookupTables (DeclContext *Primary) const ;
1465- 
14661447  // / Get the loaded specializations lookup tables for \p D,
14671448  // / if any.
14681449  serialization::reader::LazySpecializationInfoLookupTable *
@@ -2138,8 +2119,7 @@ class ASTReader
21382119  // / The current implementation of this method just loads the entire
21392120  // / lookup table as unmaterialized references.
21402121  bool  FindExternalVisibleDeclsByName (const  DeclContext *DC,
2141-                                       DeclarationName Name,
2142-                                       Module *NamedModule) override ;
2122+                                       DeclarationName Name) override ;
21432123
21442124  // / Read all of the declarations lexically stored in a
21452125  // / declaration context.
@@ -2627,10 +2607,6 @@ inline bool shouldSkipCheckingODR(const Decl *D) {
26272607         (D->isFromGlobalModule () || D->isFromHeaderUnit ());
26282608}
26292609
2630- // / Calculate a hash value for the primary module name of the given module.
2631- // / \returns std::nullopt if M is not a C++ standard module.
2632- std::optional<unsigned > getPrimaryModuleHash (const  Module *M);
2633- 
26342610} //  namespace clang
26352611
26362612#endif  //  LLVM_CLANG_SERIALIZATION_ASTREADER_H
0 commit comments