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

Dan Liew via cfe-commits cfe-commits at lists.llvm.org
Mon Mar 18 16:14:05 PDT 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.
----------------
delcypher wrote:

@ahatanak Any follow up?

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


More information about the cfe-commits mailing list