aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/BackendUtil.cpp
diff options
context:
space:
mode:
authorAmir Ayupov <aaupov@fb.com>2024-02-12 14:39:59 -0800
committerGitHub <noreply@github.com>2024-02-12 14:39:59 -0800
commitfa7dd4919aa705f18f268fab5b2887d45f89d8dd (patch)
treebba047f6260626f329cc9e094607e8cef66e829c /clang/lib/CodeGen/BackendUtil.cpp
parenta5f3d1a803020167bd9d494a8a3921e7dcc1550a (diff)
downloadllvm-fa7dd4919aa705f18f268fab5b2887d45f89d8dd.zip
llvm-fa7dd4919aa705f18f268fab5b2887d45f89d8dd.tar.gz
llvm-fa7dd4919aa705f18f268fab5b2887d45f89d8dd.tar.bz2
[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 'clang/lib/CodeGen/BackendUtil.cpp')
0 files changed, 0 insertions, 0 deletions