1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-25 12:12:47 +01:00

[llvm-cov] Don't print a verbose title when looking at one file

Having the same title, timestamp, etc. occur repeatedly creates an
unnecessary distraction when paging through a report.

llvm-svn: 281579
This commit is contained in:
Vedant Kumar 2016-09-15 04:41:39 +00:00
parent bfd3462713
commit 4cd17108cb
2 changed files with 3 additions and 3 deletions

View File

@ -1,6 +1,6 @@
TEXT-TITLE: Test Suite
TEXT: Coverage Report
TEXT: Created:
TEXT-NOT: Coverage Report
TEXT-NOT: Created:
TEXT-FILE-NOT: (Binary: showProjectSummary.covmapping)
TEXT-FUNCTION: main:
TEXT-FOOTER: Generated by llvm-cov

View File

@ -168,7 +168,7 @@ void SourceCoverageView::addInstantiation(
void SourceCoverageView::print(raw_ostream &OS, bool WholeFile,
bool ShowSourceName, unsigned ViewDepth) {
if (WholeFile)
if (WholeFile && getOptions().hasOutputDirectory())
renderCellInTitle(OS, "Coverage Report");
renderViewHeader(OS);