summaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/BackendUtil.cpp
diff options
context:
space:
mode:
authorStephen Tozer <Melamoto@gmail.com>2025-04-25 00:33:24 +0100
committerGitHub <noreply@github.com>2025-04-25 00:33:24 +0100
commit2db36d8693610acbe87bed2f10e49ca938429bde (patch)
treebd07908a9a8e18861545876c86f08ba43916d8a3 /clang/lib/CodeGen/BackendUtil.cpp
parent262158b8aa12634c17f4b37cba62564e5c9baab4 (diff)
Revert "[DLCov] Implement DebugLoc coverage tracking (#107279)"revert-107279-dl-coverage-2-coverage-impl
This reverts commit a9d93ecf1f8d2cfe3f77851e0df179b386cff353.
Diffstat (limited to 'clang/lib/CodeGen/BackendUtil.cpp')
-rw-r--r--clang/lib/CodeGen/BackendUtil.cpp16
1 files changed, 0 insertions, 16 deletions
diff --git a/clang/lib/CodeGen/BackendUtil.cpp b/clang/lib/CodeGen/BackendUtil.cpp
index cafc70342018..f7eb853beb23 100644
--- a/clang/lib/CodeGen/BackendUtil.cpp
+++ b/clang/lib/CodeGen/BackendUtil.cpp
@@ -961,22 +961,6 @@ void EmitAssemblyHelper::RunOptimizationPipeline(
Debugify.setOrigDIVerifyBugsReportFilePath(
CodeGenOpts.DIBugsReportFilePath);
Debugify.registerCallbacks(PIC, MAM);
-
-#if ENABLE_DEBUGLOC_COVERAGE_TRACKING
- // If we're using debug location coverage tracking, mark all the
- // instructions coming out of the frontend without a DebugLoc as being
- // compiler-generated, to prevent both those instructions and new
- // instructions that inherit their location from being treated as
- // incorrectly empty locations.
- for (Function &F : *TheModule) {
- if (!F.getSubprogram())
- continue;
- for (BasicBlock &BB : F)
- for (Instruction &I : BB)
- if (!I.getDebugLoc())
- I.setDebugLoc(DebugLoc::getCompilerGenerated());
- }
-#endif
}
// Attempt to load pass plugins and register their callbacks with PB.
for (auto &PluginFN : CodeGenOpts.PassPlugins) {