[llvm-branch-commits] [clang] [clang] [sanitizer] add pseudofunction to indicate array-bounds check (PR #128977)
Dan Liew via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Wed Mar 5 13:29:46 PST 2025
================
@@ -635,6 +635,13 @@ class CGDebugInfo {
llvm::DILocation *CreateTrapFailureMessageFor(llvm::DebugLoc TrapLocation,
StringRef Category,
StringRef FailureMsg);
+ /// Create a debug location from `Location` that adds an artificial inline
+ /// frame where the frame name is FuncName
+ ///
+ /// This is used to indiciate instructions that come from compiler
+ /// instrumentation.
+ llvm::DILocation *CreateSyntheticInline(llvm::DebugLoc Location,
----------------
delcypher wrote:
Nit. Maybe call it `CreateSyntheticInlineAt` ? Those who know more about Clang debug info generation (e.g. @adrian-prantl @felipepiovezan @Michael137 ) might have ideas on a better name though.
https://github.com/llvm/llvm-project/pull/128977
More information about the llvm-branch-commits
mailing list