summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-cov/SourceCoverageView.h
diff options
context:
space:
mode:
authorVedant Kumar <vsk@apple.com>2017-09-08 18:44:46 +0000
committerVedant Kumar <vsk@apple.com>2017-09-08 18:44:46 +0000
commit933b37f99f4f6f2ca3ab0d268caafc33c50bee84 (patch)
treee55936ba795b66684453481b0ef3f3f6c386ebf9 /llvm/tools/llvm-cov/SourceCoverageView.h
parentee6a352a8ddfd3bf7b7dea95bc2d7d7df0b9aa5f (diff)
downloadbcm5719-llvm-933b37f99f4f6f2ca3ab0d268caafc33c50bee84.tar.gz
bcm5719-llvm-933b37f99f4f6f2ca3ab0d268caafc33c50bee84.zip
[llvm-cov] Unify region marker placement between text/html modes
Make sure that the text and html emitters always emit the same set of region markers, and avoid emitting redundant markers for line segments which don't end on the line they start on. This is related to D35925, and depends on D36014 Differential Revision: https://reviews.llvm.org/D36020 llvm-svn: 312813
Diffstat (limited to 'llvm/tools/llvm-cov/SourceCoverageView.h')
-rw-r--r--llvm/tools/llvm-cov/SourceCoverageView.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/tools/llvm-cov/SourceCoverageView.h b/llvm/tools/llvm-cov/SourceCoverageView.h
index c9f0c57b5cb..9b1562555a8 100644
--- a/llvm/tools/llvm-cov/SourceCoverageView.h
+++ b/llvm/tools/llvm-cov/SourceCoverageView.h
@@ -236,7 +236,7 @@ protected:
static std::string formatCount(uint64_t N);
/// \brief Check if region marker output is expected for a line.
- bool shouldRenderRegionMarkers(bool LineHasMultipleRegions) const;
+ bool shouldRenderRegionMarkers(CoverageSegmentArray Segments) const;
/// \brief Check if there are any sub-views attached to this view.
bool hasSubViews() const;
OpenPOWER on IntegriCloud