aboutsummaryrefslogtreecommitdiff
path: root/llvm/tools/llvm-cov/SourceCoverageView.cpp
diff options
context:
space:
mode:
authorVedant Kumar <vsk@apple.com>2016-06-24 00:34:48 +0000
committerVedant Kumar <vsk@apple.com>2016-06-24 00:34:48 +0000
commit60dcb48ad0ecc0b065ca55fdf70f4957518a4cc3 (patch)
tree04af7deec2bcea57070e9d6312e7299600d151cc /llvm/tools/llvm-cov/SourceCoverageView.cpp
parent5b42f4b8f4f20277031a001ed06e80f8d75c3c18 (diff)
downloadllvm-60dcb48ad0ecc0b065ca55fdf70f4957518a4cc3.zip
llvm-60dcb48ad0ecc0b065ca55fdf70f4957518a4cc3.tar.gz
llvm-60dcb48ad0ecc0b065ca55fdf70f4957518a4cc3.tar.bz2
[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. llvm-svn: 273633
Diffstat (limited to 'llvm/tools/llvm-cov/SourceCoverageView.cpp')
-rw-r--r--llvm/tools/llvm-cov/SourceCoverageView.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/tools/llvm-cov/SourceCoverageView.cpp b/llvm/tools/llvm-cov/SourceCoverageView.cpp
index 58c8a679..0d28006 100644
--- a/llvm/tools/llvm-cov/SourceCoverageView.cpp
+++ b/llvm/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)