diff options
author | Vedant Kumar <vsk@apple.com> | 2017-09-08 18:44:46 +0000 |
---|---|---|
committer | Vedant Kumar <vsk@apple.com> | 2017-09-08 18:44:46 +0000 |
commit | 933b37f99f4f6f2ca3ab0d268caafc33c50bee84 (patch) | |
tree | e55936ba795b66684453481b0ef3f3f6c386ebf9 /llvm/tools/llvm-cov/SourceCoverageView.h | |
parent | ee6a352a8ddfd3bf7b7dea95bc2d7d7df0b9aa5f (diff) | |
download | bcm5719-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.h | 2 |
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; |