summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Instrumentation/InstrProfiling.cpp
diff options
context:
space:
mode:
authorVedant Kumar <vsk@apple.com>2016-05-13 20:09:39 +0000
committerVedant Kumar <vsk@apple.com>2016-05-13 20:09:39 +0000
commit064535c1eace2b43f3f628f43551422fb5d054f5 (patch)
tree0bba6f228ffb1f7500ad30aba7b9810a7d5dde8c /llvm/lib/Transforms/Instrumentation/InstrProfiling.cpp
parent833b91eee8c4a33f725f5f22736c85958476f2ec (diff)
downloadbcm5719-llvm-064535c1eace2b43f3f628f43551422fb5d054f5.tar.gz
bcm5719-llvm-064535c1eace2b43f3f628f43551422fb5d054f5.zip
Revert "(HEAD -> master, origin/master, origin/HEAD) [ProfileData] (llvm) Use Error in InstrProf and Coverage, NFC"
This reverts commit r269462. It fails two llvm-profdata tests. llvm-svn: 269466
Diffstat (limited to 'llvm/lib/Transforms/Instrumentation/InstrProfiling.cpp')
-rw-r--r--llvm/lib/Transforms/Instrumentation/InstrProfiling.cpp4
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();
OpenPOWER on IntegriCloud