[llvm-branch-commits] [llvm] [DLCov] Origin-Tracking: Enable collecting and symbolizing stack traces (PR #143591)

Jeremy Morse via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Wed Jun 11 10:07:08 PDT 2025


================
@@ -57,6 +75,28 @@ LLVM_ABI void DisableSystemDialogsOnCrash();
 ///        specified, the entire frame is printed.
 LLVM_ABI void PrintStackTrace(raw_ostream &OS, int Depth = 0);
 
+#if LLVM_ENABLE_DEBUGLOC_ORIGIN_TRACKING
+#ifdef NDEBUG
+#error DebugLoc origin-tracking should not be enabled in Release builds.
----------------
jmorse wrote:

Why's this not appropriate in release builds -- if compiled with `fno-omit-frame-pointer` would it work?

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


More information about the llvm-branch-commits mailing list