This is an archive of the discontinued LLVM Phabricator instance.

[BOLT] Check MCContext errors
ClosedPublic

Authored by Amir on Apr 6 2022, 3:44 PM.

Details

Summary

Abort on emission errors to prevent a malformed binary being written.
Example:

<unknown>:0: error: Undefined temporary symbol .Ltmp26310
<unknown>:0: error: Undefined temporary symbol .Ltmp26311
<unknown>:0: error: Undefined temporary symbol .Ltmp26312
<unknown>:0: error: Undefined temporary symbol .Ltmp26313
<unknown>:0: error: Undefined temporary symbol .Ltmp26314
<unknown>:0: error: Undefined temporary symbol .Ltmp26315
BOLT-ERROR: Emission failed.

Diff Detail

Event Timeline

Amir created this revision.Apr 6 2022, 3:44 PM
Herald added a reviewer: maksfb. · View Herald Transcript
Herald added a project: Restricted Project. · View Herald Transcript
Herald added a subscriber: ayermolo. · View Herald Transcript
Amir requested review of this revision.Apr 6 2022, 3:44 PM
Herald added a project: Restricted Project. · View Herald TranscriptApr 6 2022, 3:44 PM
yota9 accepted this revision.Apr 8 2022, 4:48 AM
This revision is now accepted and ready to land.Apr 8 2022, 4:48 AM
This revision was automatically updated to reflect the committed changes.