1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 03:02:36 +01:00

[llvm-cov] Don't recompute the 'Covered' field from *CoverageInfo (NFC)

llvm-svn: 281874
This commit is contained in:
Vedant Kumar 2016-09-19 00:38:18 +00:00
parent e723e6ad9c
commit f4d70a9a8f

View File

@ -334,12 +334,11 @@ void CoveragePrinterHTML::emitFileSummary(raw_ostream &OS, StringRef SF,
AddCoverageTripleToColumn(FCS.FunctionCoverage.Executed, AddCoverageTripleToColumn(FCS.FunctionCoverage.Executed,
FCS.FunctionCoverage.NumFunctions, FCS.FunctionCoverage.NumFunctions,
FCS.FunctionCoverage.getPercentCovered()); FCS.FunctionCoverage.getPercentCovered());
AddCoverageTripleToColumn( AddCoverageTripleToColumn(FCS.LineCoverage.Covered, FCS.LineCoverage.NumLines,
FCS.LineCoverage.NumLines - FCS.LineCoverage.NotCovered, FCS.LineCoverage.getPercentCovered());
FCS.LineCoverage.NumLines, FCS.LineCoverage.getPercentCovered()); AddCoverageTripleToColumn(FCS.RegionCoverage.Covered,
AddCoverageTripleToColumn( FCS.RegionCoverage.NumRegions,
FCS.RegionCoverage.NumRegions - FCS.RegionCoverage.NotCovered, FCS.RegionCoverage.getPercentCovered());
FCS.RegionCoverage.NumRegions, FCS.RegionCoverage.getPercentCovered());
OS << tag("tr", join(Columns.begin(), Columns.end(), ""), "light-row"); OS << tag("tr", join(Columns.begin(), Columns.end(), ""), "light-row");
} }