diff options
author | Stephen Tozer <stephen.tozer@sony.com> | 2025-04-25 00:36:28 +0100 |
---|---|---|
committer | Stephen Tozer <stephen.tozer@sony.com> | 2025-04-25 00:36:28 +0100 |
commit | fdbf073a86573c9ac4d595fac8e06d252ce1469f (patch) | |
tree | bd07908a9a8e18861545876c86f08ba43916d8a3 /clang/lib/CodeGen/BackendUtil.cpp | |
parent | 262158b8aa12634c17f4b37cba62564e5c9baab4 (diff) | |
download | llvm-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 'clang/lib/CodeGen/BackendUtil.cpp')
-rw-r--r-- | clang/lib/CodeGen/BackendUtil.cpp | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/clang/lib/CodeGen/BackendUtil.cpp b/clang/lib/CodeGen/BackendUtil.cpp index cafc703..f7eb853 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) { |