diff options
| author | Max Moroz <mmoroz@chromium.org> | 2019-06-28 15:38:25 +0000 |
|---|---|---|
| committer | Max Moroz <mmoroz@chromium.org> | 2019-06-28 15:38:25 +0000 |
| commit | 176b9f651685c52bce25e700a758bd33e6a5354d (patch) | |
| tree | 667ec6449f714806ea21e97a966c8e718dec65a0 /llvm/tools | |
| parent | 9f1dffdb024f4caa4aace4804aa4ac46dba523da (diff) | |
| download | bcm5719-llvm-176b9f651685c52bce25e700a758bd33e6a5354d.tar.gz bcm5719-llvm-176b9f651685c52bce25e700a758bd33e6a5354d.zip | |
[llvm-cov[ Fix lcov coverage report contains functions from other compilation units.
Summary: Patch by Chuan Qiu (@eagleonhill).
Reviewers: Dor1s
Reviewed By: Dor1s
Subscribers: lebedev.ri, llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D63571
llvm-svn: 364653
Diffstat (limited to 'llvm/tools')
| -rw-r--r-- | llvm/tools/llvm-cov/CoverageExporterLcov.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/tools/llvm-cov/CoverageExporterLcov.cpp b/llvm/tools/llvm-cov/CoverageExporterLcov.cpp index 6e017743eec..d9b0c3b0d7a 100644 --- a/llvm/tools/llvm-cov/CoverageExporterLcov.cpp +++ b/llvm/tools/llvm-cov/CoverageExporterLcov.cpp @@ -82,7 +82,7 @@ void renderFile(raw_ostream &OS, const coverage::CoverageMapping &Coverage, OS << "SF:" << Filename << '\n'; if (!ExportSummaryOnly) { - renderFunctions(OS, Coverage.getCoveredFunctions()); + renderFunctions(OS, Coverage.getCoveredFunctions(Filename)); } renderFunctionSummary(OS, FileReport); |

