diff options
author | Vedant Kumar <vsk@apple.com> | 2016-06-24 00:34:48 +0000 |
---|---|---|
committer | Vedant Kumar <vsk@apple.com> | 2016-06-24 00:34:48 +0000 |
commit | 6706133bc9ed068f5e8c03a37d9f99d50730a8b4 (patch) | |
tree | 40811e4491a82b762b4cb100d2faa35f476e4d41 /tools/llvm-cov/SourceCoverageView.cpp | |
parent | 379e6dc9b417c60add168532fe9df68bb4ca76e8 (diff) |
[llvm-cov] Rename SourceCoverageView::LineCoverageInfo to LineCoverageStats, NFC
Pull LineCoverageInfo out of SourceCoverageView and rename it so that it
doesn't conflict with another class of the same name in
CoverageSummaryInfo.h.
This cuts down on the amount of code we have to move into a `protected`
section of SourceCoverageView for the upcoming html patch. It also makes
the code a bit clearer: having two LineCoverageInfo's is strange.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@273633 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/llvm-cov/SourceCoverageView.cpp')
-rw-r--r-- | tools/llvm-cov/SourceCoverageView.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/llvm-cov/SourceCoverageView.cpp b/tools/llvm-cov/SourceCoverageView.cpp index 58c8a679529..0d28006c018 100644 --- a/tools/llvm-cov/SourceCoverageView.cpp +++ b/tools/llvm-cov/SourceCoverageView.cpp @@ -96,7 +96,7 @@ static std::string formatCount(uint64_t N) { void SourceCoverageView::renderLineCoverageColumn(raw_ostream &OS, - const LineCoverageInfo &Line) { + const LineCoverageStats &Line) { if (!Line.isMapped()) { OS.indent(LineCoverageColumnWidth) << '|'; return; @@ -186,7 +186,7 @@ void SourceCoverageView::render(raw_ostream &OS, bool WholeFile, LineSegments.push_back(&*NextSegment++); // Calculate a count to be for the line as a whole. - LineCoverageInfo LineCount; + LineCoverageStats LineCount; if (WrappedSegment && WrappedSegment->HasCount) LineCount.addRegionCount(WrappedSegment->Count); for (const auto *S : LineSegments) |