Revert "Revert "[InstrProf] Support for external functions in text format.""
authorMircea Trofin <mtrofin@google.com>
Thu, 22 Mar 2018 21:26:52 +0000 (21:26 +0000)
committerMircea Trofin <mtrofin@google.com>
Thu, 22 Mar 2018 21:26:52 +0000 (21:26 +0000)
commit29a21bab087dbb2c8c7e815f4816c4d5356361f9
tree7f684f7e1efef63190ad590153aacbe576680b50
parentf3d421280bf7770e43ff56a2a518b71304ee0e16
Revert "Revert "[InstrProf] Support for external functions in text format.""

Summary:
This reverts commit 364eb09576a7667bc6d3ff80c52a83014ccac976 and separates out
the portion that was fixing binary reader error propagation - turns out, there
are production cases where that causes a regression.

Will re-introduce the error propagation fix separately.

The fix to the text reader error propagation is still "in".

Reviewers: bkramer

Reviewed By: bkramer

Subscribers: llvm-commits

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

llvm-svn: 328244
llvm/include/llvm/ProfileData/InstrProf.h
llvm/include/llvm/ProfileData/InstrProfReader.h
llvm/lib/ProfileData/InstrProf.cpp
llvm/lib/ProfileData/InstrProfReader.cpp
llvm/lib/ProfileData/InstrProfWriter.cpp
llvm/test/tools/llvm-profdata/invalid-profdata.test [new file with mode: 0644]
llvm/unittests/ProfileData/InstrProfTest.cpp