================ @@ -942,6 +942,12 @@ class ASTReader /// Sema tracks these to emit deferred diags. llvm::SmallSetVector<serialization::DeclID, 4> DeclsToCheckForDeferredDiags; + /// The module files imported by different module files. Indirectly imported + /// module files are included too. The information comes from + /// ReadModuleOffsetMap(ModuleFile&). + mutable llvm::DenseMap<ModuleFile *, llvm::SmallVector<ModuleFile *>> + ImportedModuleFiles; ---------------- jansvoboda11 wrote:
Why does this live in `ASTReader`? If we moved it to `ModuleFile`, we could remove `mutable` and the map lookups. https://github.com/llvm/llvm-project/pull/86912 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits