[llvm-cov] Improve error message for missing profdata
authorEli Friedman <efriedma@quicinc.com>
Wed, 25 Mar 2020 19:28:47 +0000 (12:28 -0700)
committerEli Friedman <efriedma@quicinc.com>
Mon, 30 Mar 2020 19:54:07 +0000 (12:54 -0700)
commit9eb1b41811c76eec35c5feafb2fdc781f356bf48
tree24ad57a8e032bbd9f49508a8d4028160fb3a572a
parentd16ba9b0bd724bfae73ef5c531e724eb46d4ba49
[llvm-cov] Improve error message for missing profdata

I got a report recently that a user was having trouble interpreting the
meaning of the error message.  Hopefully this is more readable; produces
something like the following:

error: No such file or directory: Could not read profile data!

Differential Revision: https://reviews.llvm.org/D76796
llvm/test/tools/llvm-cov/misssing-profdata.test [new file with mode: 0644]
llvm/tools/llvm-cov/CodeCoverage.cpp