================ @@ -1392,6 +1392,20 @@ class ASTReader llvm::DenseMap<const Decl *, bool> DefinitionSource; + /// The set of extra flags about declarations that we have read from + /// the module file. + struct ExternalDeclarationBits { + /// Indicates if given function declaration was a definition but its body + /// was removed due to declaration merging. + bool ThisDeclarationWasADefinition : 1; + + ExternalDeclarationBits() : ThisDeclarationWasADefinition(false) {} + }; + + /// A mapping from declarations to extra bits of information about this decl. + llvm::DenseMap<const Decl *, ExternalDeclarationBits> ---------------- ChuanqiXu9 wrote:
```suggestion llvm::DenseMap<const Decl *, bool> ``` nit: I think we can avoid the abstraction here. https://github.com/llvm/llvm-project/pull/132214 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits