diff options
author | Vedant Kumar <vsk@apple.com> | 2016-05-13 20:01:27 +0000 |
---|---|---|
committer | Vedant Kumar <vsk@apple.com> | 2016-05-13 20:01:27 +0000 |
commit | ac25219d206512bb25a2b42632407d93cf7a4670 (patch) | |
tree | c047d6d0e42122bf7979c21f676439d7d38ff066 /llvm/lib/Transforms/Instrumentation/InstrProfiling.cpp | |
parent | 4525fbe22a8cf79cbbeab3ebe905e81aa6c35f1a (diff) | |
download | bcm5719-llvm-ac25219d206512bb25a2b42632407d93cf7a4670.tar.gz bcm5719-llvm-ac25219d206512bb25a2b42632407d93cf7a4670.zip |
[ProfileData] (llvm) Use Error in InstrProf and Coverage, NFC
Transition InstrProf and Coverage over to the stricter Error/Expected
interface.
Differential Revision: http://reviews.llvm.org/D19901
llvm-svn: 269462
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 930001fd684..11369d6f70d 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(); |