[clang] Add support for builtin_verbose_trap (PR #79230)

Konstantin Varlamov via cfe-commits cfe-commits at lists.llvm.org
Thu Jan 25 16:23:44 PST 2024


================
@@ -346,6 +346,14 @@ 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.
+  std::map<std::string, llvm::DISubprogram *> InlinedTrapFuncMap;
----------------
var-const wrote:

Nit: I think this header might need to include `<map>` and `<string>`, otherwise it appears to rely on those headers being included transitively from somewhere. (Unless of course there's some Clang convention against doing that)

https://github.com/llvm/llvm-project/pull/79230


More information about the cfe-commits mailing list