InstrProf: Give coverage its own errors instead of piggy backing on instrprof
authorJustin Bogner <mail@justinbogner.com>
Wed, 6 May 2015 23:19:35 +0000 (23:19 +0000)
committerJustin Bogner <mail@justinbogner.com>
Wed, 6 May 2015 23:19:35 +0000 (23:19 +0000)
commit406a47c17fa332c38cc8506e82876f2246ae88f7
tree5032023b4651b1e5e7a12def8da24d4b1d0e99fb
parent63134e79e6e194b36dfb4642f94d1aaf4f14ffb0
InstrProf: Give coverage its own errors instead of piggy backing on instrprof

Since the coverage mapping reader and the instrprof reader were
emitting a shared set of error codes, the error messages you'd get
back from llvm-cov were ambiguous about what was actually wrong. Add
another error category to fix this.

I've also improved the wording on a couple of the instrprof errors,
for consistency.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@236665 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/ProfileData/CoverageMapping.h
lib/ProfileData/CoverageMapping.cpp
lib/ProfileData/CoverageMappingReader.cpp
lib/ProfileData/InstrProf.cpp
test/tools/llvm-profdata/raw-magic-but-no-header.test