[all-commits] [llvm/llvm-project] 9b02dc: [BOLT] Check MCContext errors

Amir Ayupov via All-commits all-commits at lists.llvm.org
Fri Apr 8 21:08:52 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 9b02dc631d71ded18bf62ea332b68bd873cc23b6
      https://github.com/llvm/llvm-project/commit/9b02dc631d71ded18bf62ea332b68bd873cc23b6
  Author: Amir Ayupov <aaupov at fb.com>
  Date:   2022-04-08 (Fri, 08 Apr 2022)

  Changed paths:
    M bolt/lib/Rewrite/RewriteInstance.cpp

  Log Message:
  -----------
  [BOLT] Check MCContext errors

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.
```

Reviewed By: yota9

Differential Revision: https://reviews.llvm.org/D123263




More information about the All-commits mailing list