@@ -353,7 +353,6 @@ class ASTIdentifierLookupTrait;
353
353
354
354
// / The on-disk hash table(s) used for DeclContext name lookup.
355
355
struct DeclContextLookupTable ;
356
- struct ModuleLocalLookupTable ;
357
356
358
357
// / The on-disk hash table(s) used for specialization decls.
359
358
struct LazySpecializationInfoLookupTable ;
@@ -524,14 +523,9 @@ class ASTReader
524
523
// / in the chain.
525
524
DeclUpdateOffsetsMap DeclUpdateOffsets;
526
525
527
- struct LookupBlockOffsets {
528
- uint64_t LexicalOffset;
529
- uint64_t VisibleOffset;
530
- uint64_t ModuleLocalOffset;
531
- };
532
-
533
526
using DelayedNamespaceOffsetMapTy =
534
- llvm::DenseMap<GlobalDeclID, LookupBlockOffsets>;
527
+ llvm::DenseMap<GlobalDeclID, std::pair</* LexicalOffset*/ uint64_t ,
528
+ /* VisibleOffset*/ uint64_t >>;
535
529
536
530
// / Mapping from global declaration IDs to the lexical and visible block
537
531
// / offset for delayed namespace in reduced BMI.
@@ -637,9 +631,6 @@ class ASTReader
637
631
// / Map from a DeclContext to its lookup tables.
638
632
llvm::DenseMap<const DeclContext *,
639
633
serialization::reader::DeclContextLookupTable> Lookups;
640
- llvm::DenseMap<const DeclContext *,
641
- serialization::reader::ModuleLocalLookupTable>
642
- ModuleLocalLookups;
643
634
644
635
using SpecLookupTableTy =
645
636
llvm::DenseMap<const Decl *,
@@ -668,8 +659,6 @@ class ASTReader
668
659
// / Updates to the visible declarations of declaration contexts that
669
660
// / haven't been loaded yet.
670
661
llvm::DenseMap<GlobalDeclID, DeclContextVisibleUpdates> PendingVisibleUpdates;
671
- llvm::DenseMap<GlobalDeclID, DeclContextVisibleUpdates>
672
- PendingModuleLocalVisibleUpdates;
673
662
674
663
using SpecializationsUpdate = SmallVector<UpdateData, 1 >;
675
664
using SpecializationsUpdateMap =
@@ -707,8 +696,7 @@ class ASTReader
707
696
// / Read the record that describes the visible contents of a DC.
708
697
bool ReadVisibleDeclContextStorage (ModuleFile &M,
709
698
llvm::BitstreamCursor &Cursor,
710
- uint64_t Offset, GlobalDeclID ID,
711
- bool IsModuleLocal);
699
+ uint64_t Offset, GlobalDeclID ID);
712
700
713
701
bool ReadSpecializations (ModuleFile &M, llvm::BitstreamCursor &Cursor,
714
702
uint64_t Offset, Decl *D, bool IsPartial);
@@ -1144,10 +1132,6 @@ class ASTReader
1144
1132
// / Number of visible decl contexts read/total.
1145
1133
unsigned NumVisibleDeclContextsRead = 0 , TotalVisibleDeclContexts = 0 ;
1146
1134
1147
- // / Number of module local visible decl contexts read/total.
1148
- unsigned NumModuleLocalVisibleDeclContexts = 0 ,
1149
- TotalModuleLocalVisibleDeclContexts = 0 ;
1150
-
1151
1135
// / Total size of modules, in bits, currently loaded
1152
1136
uint64_t TotalModulesSizeInBits = 0 ;
1153
1137
@@ -1460,9 +1444,6 @@ class ASTReader
1460
1444
const serialization::reader::DeclContextLookupTable *
1461
1445
getLoadedLookupTables (DeclContext *Primary) const ;
1462
1446
1463
- const serialization::reader::ModuleLocalLookupTable *
1464
- getModuleLocalLookupTables (DeclContext *Primary) const ;
1465
-
1466
1447
// / Get the loaded specializations lookup tables for \p D,
1467
1448
// / if any.
1468
1449
serialization::reader::LazySpecializationInfoLookupTable *
@@ -2138,8 +2119,7 @@ class ASTReader
2138
2119
// / The current implementation of this method just loads the entire
2139
2120
// / lookup table as unmaterialized references.
2140
2121
bool FindExternalVisibleDeclsByName (const DeclContext *DC,
2141
- DeclarationName Name,
2142
- Module *NamedModule) override ;
2122
+ DeclarationName Name) override ;
2143
2123
2144
2124
// / Read all of the declarations lexically stored in a
2145
2125
// / declaration context.
@@ -2627,10 +2607,6 @@ inline bool shouldSkipCheckingODR(const Decl *D) {
2627
2607
(D->isFromGlobalModule () || D->isFromHeaderUnit ());
2628
2608
}
2629
2609
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
-
2634
2610
} // namespace clang
2635
2611
2636
2612
#endif // LLVM_CLANG_SERIALIZATION_ASTREADER_H
0 commit comments