================
@@ -346,6 +348,15 @@ class CGDebugInfo {
const FieldDecl *BitFieldDecl, const llvm::DIDerivedType *BitFieldDI,
llvm::ArrayRef<llvm::Metadata *> PreviousFieldsDI, const RecordDecl *RD);
+ // A cache that maps artificial inlined function names used for
+ // __builtin_verbose_trap to subprograms.
+ llvm::StringMap<llvm::DISubprogram *> InlinedTrapFuncMap;
----------------
delcypher wrote:
Just to check. What's the life time of CGDebugInfo? Is it a single instance per
complication unit? If it's longer than that (i.e. the same instance gets used
for multiple compilation units) then we might cache the sub programs for too
long.
https://github.com/llvm/llvm-project/pull/79230
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits