diff options
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) { |