mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-25 12:12:47 +01:00
d0e8e6729c
This patch makes a slight change to the way llvm-cov determines line execution counts. If there are multiple line segments on a line, the line count is the max count among the regions which start *and* end on the line. This avoids an issue posed by deferred regions which start on the same line as a terminated region, e.g: if (false) return; //< The line count should be 0, even though a new region //< starts at the semi-colon. foo(); Another change is that counts from line segments which don't correspond to region entries are considered. This enables the first change, and corrects an outstanding issue (see the showLineExecutionCounts.cpp test change). This is related to D35925. Testing: check-profile, llvm-cov lit tests Differential Revision: https://reviews.llvm.org/D36014 llvm-svn: 310012 |
||
---|---|---|
.. | ||
CMakeLists.txt | ||
CodeCoverage.cpp | ||
CoverageExporterJson.cpp | ||
CoverageFilters.cpp | ||
CoverageFilters.h | ||
CoverageReport.cpp | ||
CoverageReport.h | ||
CoverageSummaryInfo.cpp | ||
CoverageSummaryInfo.h | ||
CoverageViewOptions.h | ||
gcov.cpp | ||
llvm-cov.cpp | ||
LLVMBuild.txt | ||
RenderingSupport.h | ||
SourceCoverageView.cpp | ||
SourceCoverageView.h | ||
SourceCoverageViewHTML.cpp | ||
SourceCoverageViewHTML.h | ||
SourceCoverageViewText.cpp | ||
SourceCoverageViewText.h | ||
TestingSupport.cpp |