summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-cov/SourceCoverageView.h
diff options
context:
space:
mode:
authorJustin Bogner <mail@justinbogner.com>2014-09-15 22:12:28 +0000
committerJustin Bogner <mail@justinbogner.com>2014-09-15 22:12:28 +0000
commit0b3614f806592852454e722432f66d9b40a73eed (patch)
treed2afbad2febec55db93db22b4a5d59cb6010e2dc /llvm/tools/llvm-cov/SourceCoverageView.h
parent9dd2d5810f42b019440c5ca38215f0d0bb86a8be (diff)
downloadbcm5719-llvm-0b3614f806592852454e722432f66d9b40a73eed.tar.gz
bcm5719-llvm-0b3614f806592852454e722432f66d9b40a73eed.zip
llvm-cov: Fix an issue with showing regions but not counts
In r217746, though it was supposed to be NFC, I broke llvm-cov's handling of showing regions without showing counts. This should've shown up in the existing tests, except they were checking debug output that was displayed regardless of what was actually output. I've moved the relevant debug output to a more appropriate place so that the tests catch this kind of thing. llvm-svn: 217835
Diffstat (limited to 'llvm/tools/llvm-cov/SourceCoverageView.h')
-rw-r--r--llvm/tools/llvm-cov/SourceCoverageView.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/tools/llvm-cov/SourceCoverageView.h b/llvm/tools/llvm-cov/SourceCoverageView.h
index 37d4027a568..362ff1a4cbd 100644
--- a/llvm/tools/llvm-cov/SourceCoverageView.h
+++ b/llvm/tools/llvm-cov/SourceCoverageView.h
@@ -119,6 +119,9 @@ private:
std::vector<RegionMarker> Markers;
StringRef FunctionName;
+ /// \brief Initialize the visible source range for this view.
+ void setUpVisibleRange(SourceCoverageDataManager &Data);
+
/// \brief Create the line coverage information using the coverage data.
void createLineCoverageInfo(SourceCoverageDataManager &Data);
OpenPOWER on IntegriCloud