diff options
| author | Stephen Tozer <Melamoto@gmail.com> | 2025-04-25 00:33:24 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-04-25 00:33:24 +0100 |
| commit | 2db36d8693610acbe87bed2f10e49ca938429bde (patch) | |
| tree | bd07908a9a8e18861545876c86f08ba43916d8a3 /llvm/lib/IR/DebugInfo.cpp | |
| parent | 262158b8aa12634c17f4b37cba62564e5c9baab4 (diff) | |
Revert "[DLCov] Implement DebugLoc coverage tracking (#107279)"revert-107279-dl-coverage-2-coverage-impl
This reverts commit a9d93ecf1f8d2cfe3f77851e0df179b386cff353.
Diffstat (limited to 'llvm/lib/IR/DebugInfo.cpp')
| -rw-r--r-- | llvm/lib/IR/DebugInfo.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/llvm/lib/IR/DebugInfo.cpp b/llvm/lib/IR/DebugInfo.cpp index a6a88a2fecb3..7a133b209459 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()); } //===----------------------------------------------------------------------===// |
