[clang] [llvm] [DLCov 3/5] Implement DebugLoc origin-tracking (PR #107369)

J. Ryan Stinnett via llvm-commits llvm-commits at lists.llvm.org
Mon Sep 23 10:30:48 PDT 2024


================
@@ -48,22 +64,29 @@ namespace llvm {
     Temporary
   };
 
-  // Extends TrackingMDNodeRef to also store a DebugLocKind, allowing Debugify
-  // to ignore intentionally-empty DebugLocs.
-  class DILocAndCoverageTracking : public TrackingMDNodeRef {
+  // Extends TrackingMDNodeRef to also store a DebugLocKind and Origin,
+  // allowing Debugify to ignore intentionally-empty DebugLocs and display the
+  // code responsible for generating unintentionally-empty DebugLocs.
+  // Currently we only need to track the Origin of this DILoc when using a
+  // DebugLoc that is Normal and empty, so only collect the origin stacktrace in
----------------
jryans wrote:

Do you "normal or empty"...? There seem to be two cases below where traces are collected.

stacktrace -> stack trace

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


More information about the llvm-commits mailing list