diff options
| author | Amir Ayupov <aaupov@fb.com> | 2024-02-12 14:39:59 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-02-12 14:39:59 -0800 |
| commit | fa7dd4919aa705f18f268fab5b2887d45f89d8dd (patch) | |
| tree | bba047f6260626f329cc9e094607e8cef66e829c /lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp | |
| parent | a5f3d1a803020167bd9d494a8a3921e7dcc1550a (diff) | |
[BOLT][NFC] Add BOLTError and return it from passes (1/2) (#81522)
As part of the effort to refactor old error handling code that
would directly call exit(1), in this patch we add a new class
BOLTError and auxiliary functions `createFatalBOLTError()` and
`createNonFatalBOLTError()` that allow BOLT code to bubble up the
problem to the caller by using the Error class as a return
type (or Expected). Also changes passes to use these.
Co-authored-by: Rafael Auler <rafaelauler@fb.com>
Test Plan: NFC
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp')
0 files changed, 0 insertions, 0 deletions
