Unverified Commit a5f3d1a8 authored by Amir Ayupov's avatar Amir Ayupov Committed by GitHub
Browse files

[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: default avatarRafael Auler <rafaelauler@fb.com>

Test Plan: NFC
parent 283feb42
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment