diff options
author | Mircea Trofin <mtrofin@google.com> | 2018-03-22 21:26:52 +0000 |
---|---|---|
committer | Mircea Trofin <mtrofin@google.com> | 2018-03-22 21:26:52 +0000 |
commit | 29a21bab087dbb2c8c7e815f4816c4d5356361f9 (patch) | |
tree | 7f684f7e1efef63190ad590153aacbe576680b50 /llvm/lib/ProfileData/InstrProf.cpp | |
parent | f3d421280bf7770e43ff56a2a518b71304ee0e16 (diff) | |
download | bcm5719-llvm-29a21bab087dbb2c8c7e815f4816c4d5356361f9.tar.gz bcm5719-llvm-29a21bab087dbb2c8c7e815f4816c4d5356361f9.zip |
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
Diffstat (limited to 'llvm/lib/ProfileData/InstrProf.cpp')
-rw-r--r-- | llvm/lib/ProfileData/InstrProf.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/ProfileData/InstrProf.cpp b/llvm/lib/ProfileData/InstrProf.cpp index 106b3770cb0..fd25728a8a8 100644 --- a/llvm/lib/ProfileData/InstrProf.cpp +++ b/llvm/lib/ProfileData/InstrProf.cpp @@ -355,7 +355,7 @@ Error InstrProfSymtab::create(Module &M, bool InLTO) { } } } - + Sorted = false; finalizeSymtab(); return Error::success(); } @@ -476,7 +476,6 @@ Error readPGOFuncNameStrings(StringRef NameStrings, InstrProfSymtab &Symtab) { while (P < EndP && *P == 0) P++; } - Symtab.finalizeSymtab(); return Error::success(); } |