[llvm-branch-commits] [llvm] [DLCov] Origin-Tracking: Collect stack traces in DebugLoc (PR #143592)
Jeremy Morse via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Mon Jun 16 06:30:29 PDT 2025
================
@@ -9,11 +9,31 @@
#include "llvm/IR/DebugLoc.h"
#include "llvm/Config/llvm-config.h"
#include "llvm/IR/DebugInfo.h"
+
+#if LLVM_ENABLE_DEBUGLOC_ORIGIN_TRACKING
+#include "llvm/Support/Signals.h"
+
+namespace llvm {
+DbgLocOrigin::DbgLocOrigin(bool ShouldCollectTrace) {
+ if (ShouldCollectTrace) {
----------------
jmorse wrote:
Early exit instead?
https://github.com/llvm/llvm-project/pull/143592
More information about the llvm-branch-commits
mailing list