[llvm-cov] Warn if -show-functions is used without query files
authorVedant Kumar <vsk@apple.com>
Mon, 25 Sep 2017 23:10:03 +0000 (23:10 +0000)
committerVedant Kumar <vsk@apple.com>
Mon, 25 Sep 2017 23:10:03 +0000 (23:10 +0000)
commitfeb3f5272f3662f47353916edb08751660100036
treebc9ba33d29c7c31a1f33840ba8617558f3ab8d24
parentcbbcf2f843b887764a32ffec60e3c46ee7de620a
[llvm-cov] Warn if -show-functions is used without query files

llvm-cov's report mode does not print any output when -show-functions is
specified and no source files are specified. This can be surprising, so
the tool should at least print out an error message when this happens.

rdar://problem/34636859

llvm-svn: 314175
llvm/test/tools/llvm-cov/report.cpp
llvm/tools/llvm-cov/CodeCoverage.cpp