OSDN Git Service

Retry "[ProfileData] (llvm) Use Error in InstrProf and Coverage, NFC"
authorVedant Kumar <vsk@apple.com>
Fri, 13 May 2016 21:50:56 +0000 (21:50 +0000)
committerVedant Kumar <vsk@apple.com>
Fri, 13 May 2016 21:50:56 +0000 (21:50 +0000)
commitdb1d476217336be689feb3d16ec541be69838d27
treee41e1306a365b7533734d61b5441f91df7f24db4
parent81f1df869ef4640550f101a6f492989b6d4895d0
Retry "[ProfileData] (llvm) Use Error in InstrProf and Coverage, NFC"

Transition InstrProf and Coverage over to the stricter Error/Expected
interface.

Changes since the initial commit:
- Fix error message printing in llvm-profdata.
- Check errors in loadTestingFormat() + annotateAllFunctions().
- Defer error handling in InstrProfIterator to InstrProfReader.

Differential Revision: http://reviews.llvm.org/D19901

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@269491 91177308-0d34-0410-b5e6-96231b3b80d8
18 files changed:
include/llvm/ProfileData/Coverage/CoverageMapping.h
include/llvm/ProfileData/Coverage/CoverageMappingReader.h
include/llvm/ProfileData/InstrProf.h
include/llvm/ProfileData/InstrProfData.inc
include/llvm/ProfileData/InstrProfReader.h
include/llvm/ProfileData/InstrProfWriter.h
include/llvm/ProfileData/ProfileCommon.h
lib/ProfileData/Coverage/CoverageMapping.cpp
lib/ProfileData/Coverage/CoverageMappingReader.cpp
lib/ProfileData/InstrProf.cpp
lib/ProfileData/InstrProfReader.cpp
lib/ProfileData/InstrProfWriter.cpp
lib/Transforms/Instrumentation/InstrProfiling.cpp
lib/Transforms/Instrumentation/PGOInstrumentation.cpp
tools/llvm-cov/CodeCoverage.cpp
tools/llvm-profdata/llvm-profdata.cpp
unittests/ProfileData/CoverageMappingTest.cpp
unittests/ProfileData/InstrProfTest.cpp