diff options
author | Vedant Kumar <vsk@apple.com> | 2017-10-18 18:52:28 +0000 |
---|---|---|
committer | Vedant Kumar <vsk@apple.com> | 2017-10-18 18:52:28 +0000 |
commit | 08a0a3100389dc850729673e6591a539693c1fe0 (patch) | |
tree | b9d10dcab07c0aa7b4f56937fb5160f37330b955 /llvm/tools/llvm-cov/SourceCoverageView.h | |
parent | 988faf87f8067646431dca3e238147f316d84bcb (diff) | |
download | llvm-08a0a3100389dc850729673e6591a539693c1fe0.zip llvm-08a0a3100389dc850729673e6591a539693c1fe0.tar.gz llvm-08a0a3100389dc850729673e6591a539693c1fe0.tar.bz2 |
[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/SourceCoverageView.h')
-rw-r--r-- | llvm/tools/llvm-cov/SourceCoverageView.h | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/llvm/tools/llvm-cov/SourceCoverageView.h b/llvm/tools/llvm-cov/SourceCoverageView.h index 2408028..501c17d 100644 --- a/llvm/tools/llvm-cov/SourceCoverageView.h +++ b/llvm/tools/llvm-cov/SourceCoverageView.h @@ -179,8 +179,7 @@ protected: /// \brief Render a source line with highlighting. virtual void renderLine(raw_ostream &OS, LineRef L, - const coverage::CoverageSegment *WrappedSegment, - CoverageSegmentArray Segments, unsigned ExpansionCol, + const LineCoverageStats &LCS, unsigned ExpansionCol, unsigned ViewDepth) = 0; /// \brief Render the line's execution count column. @@ -192,15 +191,14 @@ protected: /// \brief Render all the region's execution counts on a line. virtual void renderRegionMarkers(raw_ostream &OS, - CoverageSegmentArray Segments, + const LineCoverageStats &Line, unsigned ViewDepth) = 0; /// \brief Render the site of an expansion. - virtual void - renderExpansionSite(raw_ostream &OS, LineRef L, - const coverage::CoverageSegment *WrappedSegment, - CoverageSegmentArray Segments, unsigned ExpansionCol, - unsigned ViewDepth) = 0; + virtual void renderExpansionSite(raw_ostream &OS, LineRef L, + const LineCoverageStats &LCS, + unsigned ExpansionCol, + unsigned ViewDepth) = 0; /// \brief Render an expansion view and any nested views. virtual void renderExpansionView(raw_ostream &OS, ExpansionView &ESV, |