aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CoverageMappingGen.cpp
diff options
context:
space:
mode:
authorAlan Phipps <a-phipps@ti.com>2023-12-13 14:13:56 -0600
committerAlan Phipps <a-phipps@ti.com>2023-12-13 15:10:05 -0600
commit8ecbb0404d740d1ab173554e47cef39cd5e3ef8c (patch)
tree93cc0afc02965f5ccc27dc83c7389662ef772661 /clang/lib/CodeGen/CoverageMappingGen.cpp
parent14d7e0bb0f75066da5d2eff718b6d59215a02077 (diff)
downloadllvm-8ecbb0404d740d1ab173554e47cef39cd5e3ef8c.zip
llvm-8ecbb0404d740d1ab173554e47cef39cd5e3ef8c.tar.gz
llvm-8ecbb0404d740d1ab173554e47cef39cd5e3ef8c.tar.bz2
Reland "[Coverage][llvm-cov] Enable MC/DC Support in LLVM Source-based Code Coverage (2/3)"
Part 2 of 3. This includes the Visualization and Evaluation components. Differential Revision: https://reviews.llvm.org/D138847
Diffstat (limited to 'clang/lib/CodeGen/CoverageMappingGen.cpp')
-rw-r--r--clang/lib/CodeGen/CoverageMappingGen.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CoverageMappingGen.cpp b/clang/lib/CodeGen/CoverageMappingGen.cpp
index b16358e..56411e2 100644
--- a/clang/lib/CodeGen/CoverageMappingGen.cpp
+++ b/clang/lib/CodeGen/CoverageMappingGen.cpp
@@ -1623,8 +1623,12 @@ static void dump(llvm::raw_ostream &OS, StringRef FunctionName,
OS << "Gap,";
break;
case CounterMappingRegion::BranchRegion:
+ case CounterMappingRegion::MCDCBranchRegion:
OS << "Branch,";
break;
+ case CounterMappingRegion::MCDCDecisionRegion:
+ OS << "Decision,";
+ break;
}
OS << "File " << R.FileID << ", " << R.LineStart << ":" << R.ColumnStart