aboutsummaryrefslogtreecommitdiff
path: root/llvm/tools/llvm-cov/SourceCoverageView.cpp
diff options
context:
space:
mode:
authorSean Eveson <eveson.sean@gmail.com>2017-09-28 10:07:30 +0000
committerSean Eveson <eveson.sean@gmail.com>2017-09-28 10:07:30 +0000
commitfa8ef35e786b59d2916a7358c30c1489a7d79b19 (patch)
tree36c1109197a1708c03e6e76b48428228c468e223 /llvm/tools/llvm-cov/SourceCoverageView.cpp
parent89d2be0702e1e57bfe514b050bdbd743c3e8731f (diff)
downloadllvm-fa8ef35e786b59d2916a7358c30c1489a7d79b19.zip
llvm-fa8ef35e786b59d2916a7358c30c1489a7d79b19.tar.gz
llvm-fa8ef35e786b59d2916a7358c30c1489a7d79b19.tar.bz2
[llvm-cov] Create directory structure when filtering using -name*= options
Before this change using any of the -name*= command line options with an output directory would result in a single file (functions.txt/functions.html) containing the coverage for those specific functions. Now you get the same directory structure as when not using any -name*= options. Differential Revision: https://reviews.llvm.org/D38280 llvm-svn: 314396
Diffstat (limited to 'llvm/tools/llvm-cov/SourceCoverageView.cpp')
-rw-r--r--llvm/tools/llvm-cov/SourceCoverageView.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/tools/llvm-cov/SourceCoverageView.cpp b/llvm/tools/llvm-cov/SourceCoverageView.cpp
index dc00b80..f944dc6 100644
--- a/llvm/tools/llvm-cov/SourceCoverageView.cpp
+++ b/llvm/tools/llvm-cov/SourceCoverageView.cpp
@@ -164,8 +164,9 @@ void SourceCoverageView::addInstantiation(
}
void SourceCoverageView::print(raw_ostream &OS, bool WholeFile,
- bool ShowSourceName, unsigned ViewDepth) {
- if (WholeFile && getOptions().hasOutputDirectory())
+ bool ShowSourceName, bool ShowTitle,
+ unsigned ViewDepth) {
+ if (ShowTitle)
renderTitle(OS, "Coverage Report");
renderViewHeader(OS);