diff options
author | Amir Ayupov <aaupov@fb.com> | 2024-02-12 14:36:12 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-12 14:36:12 -0800 |
commit | a5f3d1a803020167bd9d494a8a3921e7dcc1550a (patch) | |
tree | 5fbd02660ceab503c9004512b68d0238b94b3705 /clang/lib/CodeGen/BackendUtil.cpp | |
parent | 283feb42ee509cc56fb75316b4fd86b53a714cf4 (diff) | |
download | llvm-a5f3d1a803020167bd9d494a8a3921e7dcc1550a.zip llvm-a5f3d1a803020167bd9d494a8a3921e7dcc1550a.tar.gz llvm-a5f3d1a803020167bd9d494a8a3921e7dcc1550a.tar.bz2 |
[BOLT][NFC] Return Error from BinaryFunctionPass::runOnFunctions (#81521)
As part of the effort to refactor old error handling code that
would directly call exit(1), in this patch we change the
interface to `BinaryFunctionPass` to return an Error on
`runOnFunctions()`. This gives passes the ability to report a
serious problem to the caller (RewriteInstance class), so the
caller may decide how to best handle the exceptional situation.
Co-authored-by: Rafael Auler <rafaelauler@fb.com>
Test Plan: NFC
Diffstat (limited to 'clang/lib/CodeGen/BackendUtil.cpp')
0 files changed, 0 insertions, 0 deletions