aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/IR/DebugInfo.cpp
diff options
context:
space:
mode:
authorStephen Tozer <stephen.tozer@sony.com>2025-04-25 00:36:28 +0100
committerStephen Tozer <stephen.tozer@sony.com>2025-04-25 00:36:28 +0100
commitfdbf073a86573c9ac4d595fac8e06d252ce1469f (patch)
treebd07908a9a8e18861545876c86f08ba43916d8a3 /llvm/lib/IR/DebugInfo.cpp
parent262158b8aa12634c17f4b37cba62564e5c9baab4 (diff)
downloadllvm-fdbf073a86573c9ac4d595fac8e06d252ce1469f.zip
llvm-fdbf073a86573c9ac4d595fac8e06d252ce1469f.tar.gz
llvm-fdbf073a86573c9ac4d595fac8e06d252ce1469f.tar.bz2
Revert "[DLCov] Implement DebugLoc coverage tracking (#107279)"
This reverts commit a9d93ecf1f8d2cfe3f77851e0df179b386cff353. Reverted due to the commit including a config in LLVM headers that is not available outside of the llvm source tree.
Diffstat (limited to 'llvm/lib/IR/DebugInfo.cpp')
-rw-r--r--llvm/lib/IR/DebugInfo.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/llvm/lib/IR/DebugInfo.cpp b/llvm/lib/IR/DebugInfo.cpp
index a6a88a2..7a133b2 100644
--- a/llvm/lib/IR/DebugInfo.cpp
+++ b/llvm/lib/IR/DebugInfo.cpp
@@ -987,10 +987,8 @@ void Instruction::updateLocationAfterHoist() { dropLocation(); }
void Instruction::dropLocation() {
const DebugLoc &DL = getDebugLoc();
- if (!DL) {
- setDebugLoc(DebugLoc::getDropped());
+ if (!DL)
return;
- }
// If this isn't a call, drop the location to allow a location from a
// preceding instruction to propagate.
@@ -1002,7 +1000,7 @@ void Instruction::dropLocation() {
}
if (!MayLowerToCall) {
- setDebugLoc(DebugLoc::getDropped());
+ setDebugLoc(DebugLoc());
return;
}
@@ -1021,7 +1019,7 @@ void Instruction::dropLocation() {
//
// One alternative is to set a line 0 location with the existing scope and
// inlinedAt info. The location might be sensitive to when inlining occurs.
- setDebugLoc(DebugLoc::getDropped());
+ setDebugLoc(DebugLoc());
}
//===----------------------------------------------------------------------===//