diff options
author | Vedant Kumar <vsk@apple.com> | 2016-05-16 21:03:38 +0000 |
---|---|---|
committer | Vedant Kumar <vsk@apple.com> | 2016-05-16 21:03:38 +0000 |
commit | 85c973d3f06b86b099be39d3ac2dcb6b8c744955 (patch) | |
tree | e8ffa05f7e274abd6f46a173f7b7750af9fb2e2c /llvm/lib/Transforms/Instrumentation/InstrProfiling.cpp | |
parent | c31a9d067166468dd2b0434a9274ff00adfc726c (diff) | |
download | bcm5719-llvm-85c973d3f06b86b099be39d3ac2dcb6b8c744955.tar.gz bcm5719-llvm-85c973d3f06b86b099be39d3ac2dcb6b8c744955.zip |
Revert "Retry^2 "[ProfileData] (llvm) Use Error in InstrProf and Coverage, NFC""
This reverts commit r269694. MSVC says:
error C2086: 'char llvm::ProfErrorInfoBase<enum llvm::instrprof_error>::ID' : redefinition
llvm-svn: 269700
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 11369d6f70d..930001fd684 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 (Error E = collectPGOFuncNameStrings(ReferencedNames, CompressedNameStr, + if (auto EC = collectPGOFuncNameStrings(ReferencedNames, CompressedNameStr, DoNameCompression)) { - llvm::report_fatal_error(toString(std::move(E)), false); + llvm::report_fatal_error(EC.message(), false); } auto &Ctx = M->getContext(); |