[llvm-branch-commits] [BOLT][NFC] Add BOLTError and return it from passes (1/2) (PR #81522)

Rafael Auler via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Mon Feb 12 14:01:27 PST 2024


https://github.com/rafaelauler approved this pull request.

Thanks, as commit message we can put something like:

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 change passes to use these.

https://github.com/llvm/llvm-project/pull/81522


More information about the llvm-branch-commits mailing list