[PATCH] D123263: [BOLT] Check MCContext errors
Amir Ayupov via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Apr 8 21:08:46 PDT 2022
This revision was automatically updated to reflect the committed changes.
Closed by commit rG9b02dc631d71: [BOLT] Check MCContext errors (authored by Amir).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D123263/new/
https://reviews.llvm.org/D123263
Files:
bolt/lib/Rewrite/RewriteInstance.cpp
Index: bolt/lib/Rewrite/RewriteInstance.cpp
===================================================================
--- bolt/lib/Rewrite/RewriteInstance.cpp
+++ bolt/lib/Rewrite/RewriteInstance.cpp
@@ -3108,6 +3108,10 @@
emitBinaryContext(*Streamer, *BC, getOrgSecPrefix());
Streamer->Finish();
+ if (Streamer->getContext().hadError()) {
+ errs() << "BOLT-ERROR: Emission failed.\n";
+ exit(1);
+ }
//////////////////////////////////////////////////////////////////////////////
// Assign addresses to new sections.
@@ -3137,7 +3141,7 @@
RTDyld->finalizeWithMemoryManagerLocking();
if (RTDyld->hasError()) {
- outs() << "BOLT-ERROR: RTDyld failed: " << RTDyld->getErrorString() << "\n";
+ errs() << "BOLT-ERROR: RTDyld failed: " << RTDyld->getErrorString() << "\n";
exit(1);
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D123263.421682.patch
Type: text/x-patch
Size: 820 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220409/fc477017/attachment.bin>
More information about the llvm-commits
mailing list