[PATCH] D108358: [llvm-cov] Correctly export branch coverage in LCOV format
Alan Phipps via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Aug 20 11:49:24 PDT 2021
This revision was automatically updated to reflect the committed changes.
Closed by commit rG9116211d180c: [Coverage][llvm-cov] Correctly export branch coverage in LCOV format (authored by fetzerch, committed by alanphipps).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D108358/new/
https://reviews.llvm.org/D108358
Files:
llvm/test/tools/llvm-cov/branch-export-lcov.test
llvm/tools/llvm-cov/CoverageExporterLcov.cpp
Index: llvm/tools/llvm-cov/CoverageExporterLcov.cpp
===================================================================
--- llvm/tools/llvm-cov/CoverageExporterLcov.cpp
+++ llvm/tools/llvm-cov/CoverageExporterLcov.cpp
@@ -167,7 +167,7 @@
void renderBranchSummary(raw_ostream &OS, const FileCoverageSummary &Summary) {
OS << "BRF:" << Summary.BranchCoverage.getNumBranches() << '\n'
- << "BFH:" << Summary.BranchCoverage.getCovered() << '\n';
+ << "BRH:" << Summary.BranchCoverage.getCovered() << '\n';
}
void renderFile(raw_ostream &OS, const coverage::CoverageMapping &Coverage,
Index: llvm/test/tools/llvm-cov/branch-export-lcov.test
===================================================================
--- llvm/test/tools/llvm-cov/branch-export-lcov.test
+++ llvm/test/tools/llvm-cov/branch-export-lcov.test
@@ -34,7 +34,7 @@
// CHECK-DAG: BRDA:53,0,1,5
// CHECK-NOT: BRDA
// CHECK: BRF:30
-// CHECK: BFH:26
+// CHECK: BRH:26
// Check recursive macro-expansions.
// RUN: llvm-profdata merge %S/Inputs/branch-macros.proftext -o %t.profdata
@@ -70,4 +70,4 @@
// MACROS-NOT: BRDA:37
// MACROS-NOT: BRDA
// MACROS: BRF:40
-// MACROS: BFH:24
+// MACROS: BRH:24
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D108358.367847.patch
Type: text/x-patch
Size: 1186 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210820/f144c2c3/attachment.bin>
More information about the llvm-commits
mailing list