From: Vedant Kumar Date: Mon, 19 Sep 2016 00:38:18 +0000 (+0000) Subject: [llvm-cov] Don't recompute the 'Covered' field from *CoverageInfo (NFC) X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=673ad727cdb19956b94c8f8964b862ebe50bd16a;p=platform%2Fupstream%2Fllvm.git [llvm-cov] Don't recompute the 'Covered' field from *CoverageInfo (NFC) llvm-svn: 281874 --- diff --git a/llvm/tools/llvm-cov/SourceCoverageViewHTML.cpp b/llvm/tools/llvm-cov/SourceCoverageViewHTML.cpp index 7acb8c2..e64f31d 100644 --- a/llvm/tools/llvm-cov/SourceCoverageViewHTML.cpp +++ b/llvm/tools/llvm-cov/SourceCoverageViewHTML.cpp @@ -334,12 +334,11 @@ void CoveragePrinterHTML::emitFileSummary(raw_ostream &OS, StringRef SF, AddCoverageTripleToColumn(FCS.FunctionCoverage.Executed, FCS.FunctionCoverage.NumFunctions, FCS.FunctionCoverage.getPercentCovered()); - AddCoverageTripleToColumn( - FCS.LineCoverage.NumLines - FCS.LineCoverage.NotCovered, - FCS.LineCoverage.NumLines, FCS.LineCoverage.getPercentCovered()); - AddCoverageTripleToColumn( - FCS.RegionCoverage.NumRegions - FCS.RegionCoverage.NotCovered, - FCS.RegionCoverage.NumRegions, FCS.RegionCoverage.getPercentCovered()); + AddCoverageTripleToColumn(FCS.LineCoverage.Covered, FCS.LineCoverage.NumLines, + FCS.LineCoverage.getPercentCovered()); + AddCoverageTripleToColumn(FCS.RegionCoverage.Covered, + FCS.RegionCoverage.NumRegions, + FCS.RegionCoverage.getPercentCovered()); OS << tag("tr", join(Columns.begin(), Columns.end(), ""), "light-row"); }