[clang] [compiler-rt] [llvm] Add a field in Coverage Mapping header for tracking coverage capabilities (PR #158059)

Dorian Péron via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 23 03:13:40 PDT 2025


================
@@ -2604,6 +2604,15 @@ void CoverageMappingModuleGen::emit() {
   };
   auto CovDataHeaderTy =
       llvm::StructType::get(Ctx, ArrayRef(CovDataHeaderTypes));
+
+  // By default, clang instruments the code for "statement" and "branch"
----------------
RenjiSann wrote:

(Sorry for the delay, I overlooked your answer)

I see "region" is more generic and can fit several purposes, I'll update the code :+1: 

https://github.com/llvm/llvm-project/pull/158059


More information about the llvm-commits mailing list