diff options
author | Vedant Kumar <vsk@apple.com> | 2016-05-13 21:50:56 +0000 |
---|---|---|
committer | Vedant Kumar <vsk@apple.com> | 2016-05-13 21:50:56 +0000 |
commit | df41bd89a56d03aa88cdfc2f8b1255f8ed3fbeca (patch) | |
tree | b0dcdec3d4dc0fbfc605c79c26bf3818ae8ad93e /llvm/lib/Transforms/Instrumentation/InstrProfiling.cpp | |
parent | 5a625be808a10b2120e3c988022e07db3a36799f (diff) | |
download | llvm-df41bd89a56d03aa88cdfc2f8b1255f8ed3fbeca.zip llvm-df41bd89a56d03aa88cdfc2f8b1255f8ed3fbeca.tar.gz llvm-df41bd89a56d03aa88cdfc2f8b1255f8ed3fbeca.tar.bz2 |
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
llvm-svn: 269491
Diffstat (limited to 'llvm/lib/Transforms/Instrumentation/InstrProfiling.cpp')
-rw-r--r-- | llvm/lib/Transforms/Instrumentation/InstrProfiling.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/Instrumentation/InstrProfiling.cpp b/llvm/lib/Transforms/Instrumentation/InstrProfiling.cpp index 930001f..11369d6 100644 --- a/llvm/lib/Transforms/Instrumentation/InstrProfiling.cpp +++ b/llvm/lib/Transforms/Instrumentation/InstrProfiling.cpp @@ -374,9 +374,9 @@ void InstrProfiling::emitNameData() { return; std::string CompressedNameStr; - if (auto EC = collectPGOFuncNameStrings(ReferencedNames, CompressedNameStr, + if (Error E = collectPGOFuncNameStrings(ReferencedNames, CompressedNameStr, DoNameCompression)) { - llvm::report_fatal_error(EC.message(), false); + llvm::report_fatal_error(toString(std::move(E)), false); } auto &Ctx = M->getContext(); |