[clang] [llvm] [DLCov 2/5] Implement DebugLoc coverage tracking (PR #107279)
J. Ryan Stinnett via cfe-commits
cfe-commits at lists.llvm.org
Mon Sep 23 10:09:47 PDT 2024
================
@@ -11,6 +11,22 @@
#include "llvm/IR/DebugInfo.h"
using namespace llvm;
+#if ENABLE_DEBUGLOC_COVERAGE_TRACKING
+DILocAndCoverageTracking::DILocAndCoverageTracking(const DILocation *L)
+ : TrackingMDNodeRef(const_cast<DILocation *>(L)),
+ Kind(DebugLocKind::Normal) {}
+
+DebugLoc DebugLoc::getTemporary() { return DebugLoc(DebugLocKind::Temporary); }
+DebugLoc DebugLoc::getUnknown() { return DebugLoc(DebugLocKind::Unknown); }
+DebugLoc DebugLoc::getLineZero() { return DebugLoc(DebugLocKind::LineZero); }
+
+#else
+
----------------
jryans wrote:
I would maybe remove the blank lines around this `#else`, but perhaps that's just me.
https://github.com/llvm/llvm-project/pull/107279
More information about the cfe-commits
mailing list