[clang] Add support for builtin_verbose_trap (PR #79230)
Adrian Prantl via cfe-commits
cfe-commits at lists.llvm.org
Thu Feb 1 12:30:14 PST 2024
================
@@ -602,6 +613,19 @@ class CGDebugInfo {
return CoroutineParameterMappings;
}
+ // Create a debug location from `TrapLocation` that adds an artificial inline
+ // frame where the frame name is
+ //
+ // * `<Prefix>: <FailureMsg>` if `<FailureMsg>` is not empty.
+ // * `<Prefix>` if `<FailureMsg>` is empty. Note `<Prefix>` must
+ // contain a space.
+ //
+ // Currently `<Prefix>` is always "__llvm_verbose_trap".
+ //
+ // This is used to store failure reasons for traps.
----------------
adrian-prantl wrote:
///
https://github.com/llvm/llvm-project/pull/79230
More information about the cfe-commits
mailing list