[PATCH] D63571: Fix lcov coverage report contains functions from other compilation units.
Chuan Qiu via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 19 13:58:29 PDT 2019
eagleonhill created this revision.
eagleonhill added a reviewer: Dor1s.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
https://reviews.llvm.org/D63571
Files:
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
@@ -83,7 +83,7 @@
OS << "SF:" << Filename << '\n';
if (!ExportSummaryOnly) {
- renderFunctions(OS, Coverage.getCoveredFunctions());
+ renderFunctions(OS, Coverage.getCoveredFunctions(Filename));
}
renderFunctionSummary(OS, FileReport);
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D63571.205666.patch
Type: text/x-patch
Size: 476 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190619/60aad960/attachment.bin>
More information about the llvm-commits
mailing list