From 08a0a3100389dc850729673e6591a539693c1fe0 Mon Sep 17 00:00:00 2001 From: Vedant Kumar Date: Wed, 18 Oct 2017 18:52:28 +0000 Subject: [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 --- llvm/tools/llvm-cov/SourceCoverageViewHTML.h | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'llvm/tools/llvm-cov/SourceCoverageViewHTML.h') diff --git a/llvm/tools/llvm-cov/SourceCoverageViewHTML.h b/llvm/tools/llvm-cov/SourceCoverageViewHTML.h index 978a75ae..4026aad 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; -- cgit v1.1