[llvm-profdata] Add mode to recover from profile read failures
authorVedant Kumar <vsk@apple.com>
Tue, 3 Sep 2019 22:23:16 +0000 (22:23 +0000)
committerVedant Kumar <vsk@apple.com>
Tue, 3 Sep 2019 22:23:16 +0000 (22:23 +0000)
commitaafa6f8385ed0b495d63a461081fa5f373a25d10
tree67038f7b842d3616221015b963e775294ae9a6d7
parent1ae7a2beeafc9371bc0e397647398f6e635d595e
[llvm-profdata] Add mode to recover from profile read failures

Add a mode in which profile read errors are not immediately treated as
fatal. In this mode, merging makes forward progress and reports failure
only if no inputs can be read.

Differential Revision: https://reviews.llvm.org/D66985

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@370827 91177308-0d34-0410-b5e6-96231b3b80d8
docs/CommandGuide/llvm-profdata.rst
test/tools/llvm-profdata/invalid-profdata.test
test/tools/llvm-profdata/text-format-errors.test
tools/llvm-profdata/llvm-profdata.cpp