Skip to content

Commit 242996e

Browse files
authored
[Clang][DLCov][NFCish] Fix debugloc coverage tracking macro in Clang (#146521)
In a previous commit, the llvm-config-defined macro LLVM_ENABLE_DEBUGLOC_COVERAGE_TRACKING was renamed to LLVM_ENABLE_DEBUGLOC_TRACKING_COVERAGE. One instance of this in Clang remains unchanged; this patch renames it, and adds an explicit llvm-config inclusion to ensure the define doesn't silently get removed. NFC outside of coverage tracking builds, which we do not currently test.
1 parent 03919ef commit 242996e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

clang/lib/CodeGen/BackendUtil.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
#include "llvm/Bitcode/BitcodeWriter.h"
2626
#include "llvm/Bitcode/BitcodeWriterPass.h"
2727
#include "llvm/CodeGen/TargetSubtargetInfo.h"
28+
#include "llvm/Config/llvm-config.h"
2829
#include "llvm/Frontend/Driver/CodeGenOptions.h"
2930
#include "llvm/IR/DataLayout.h"
3031
#include "llvm/IR/DebugInfo.h"
@@ -961,7 +962,7 @@ void EmitAssemblyHelper::RunOptimizationPipeline(
961962
CodeGenOpts.DIBugsReportFilePath);
962963
Debugify.registerCallbacks(PIC, MAM);
963964

964-
#if LLVM_ENABLE_DEBUGLOC_COVERAGE_TRACKING
965+
#if LLVM_ENABLE_DEBUGLOC_TRACKING_COVERAGE
965966
// If we're using debug location coverage tracking, mark all the
966967
// instructions coming out of the frontend without a DebugLoc as being
967968
// compiler-generated, to prevent both those instructions and new

0 commit comments

Comments
 (0)