summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-cov/SourceCoverageViewHTML.h
diff options
context:
space:
mode:
authorVedant Kumar <vsk@apple.com>2017-10-18 18:52:28 +0000
committerVedant Kumar <vsk@apple.com>2017-10-18 18:52:28 +0000
commit08a0a3100389dc850729673e6591a539693c1fe0 (patch)
treeb9d10dcab07c0aa7b4f56937fb5160f37330b955 /llvm/tools/llvm-cov/SourceCoverageViewHTML.h
parent988faf87f8067646431dca3e238147f316d84bcb (diff)
downloadbcm5719-llvm-08a0a3100389dc850729673e6591a539693c1fe0.tar.gz
bcm5719-llvm-08a0a3100389dc850729673e6591a539693c1fe0.zip
[llvm-cov] Pass LineCoverageStats in SourceCoverageView. NFC.
Instead of copying around the wrapped segment and the list of line segments, just pass a reference to a LineCoverageStats object. This simplifies the interface. It also makes an upcoming change to suppress distracting highlights possible. llvm-svn: 316108
Diffstat (limited to 'llvm/tools/llvm-cov/SourceCoverageViewHTML.h')
-rw-r--r--llvm/tools/llvm-cov/SourceCoverageViewHTML.h11
1 files changed, 4 insertions, 7 deletions
diff --git a/llvm/tools/llvm-cov/SourceCoverageViewHTML.h b/llvm/tools/llvm-cov/SourceCoverageViewHTML.h
index 978a75aeced..4026aad3f73 100644
--- a/llvm/tools/llvm-cov/SourceCoverageViewHTML.h
+++ b/llvm/tools/llvm-cov/SourceCoverageViewHTML.h
@@ -57,14 +57,11 @@ class SourceCoverageViewHTML : public SourceCoverageView {
void renderViewDivider(raw_ostream &OS, unsigned ViewDepth) override;
- void renderLine(raw_ostream &OS, LineRef L,
- const coverage::CoverageSegment *WrappedSegment,
- CoverageSegmentArray Segments, unsigned ExpansionCol,
- unsigned ViewDepth) override;
+ void renderLine(raw_ostream &OS, LineRef L, const LineCoverageStats &LCS,
+ unsigned ExpansionCol, unsigned ViewDepth) override;
void renderExpansionSite(raw_ostream &OS, LineRef L,
- const coverage::CoverageSegment *WrappedSegment,
- CoverageSegmentArray Segments, unsigned ExpansionCol,
+ const LineCoverageStats &LCS, unsigned ExpansionCol,
unsigned ViewDepth) override;
void renderExpansionView(raw_ostream &OS, ExpansionView &ESV,
@@ -78,7 +75,7 @@ class SourceCoverageViewHTML : public SourceCoverageView {
void renderLineNumberColumn(raw_ostream &OS, unsigned LineNo) override;
- void renderRegionMarkers(raw_ostream &OS, CoverageSegmentArray Segments,
+ void renderRegionMarkers(raw_ostream &OS, const LineCoverageStats &Line,
unsigned ViewDepth) override;
void renderTitle(raw_ostream &OS, StringRef Title) override;
OpenPOWER on IntegriCloud