LLVM
8.0.1
|
Helper for check-and-exit error handling. More...
#include "llvm/Support/Error.h"
Public Member Functions | |
ExitOnError (std::string Banner="", int DefaultErrorExitCode=1) | |
Create an error on exit helper. More... | |
void | setBanner (std::string Banner) |
Set the banner string for any errors caught by operator(). More... | |
void | setExitCodeMapper (std::function< int(const Error &)> GetExitCode) |
Set the exit-code mapper function. More... | |
void | operator() (Error Err) const |
Check Err. If it's in a failure state log the error(s) and exit. More... | |
template<typename T > | |
T | operator() (Expected< T > &&E) const |
Check E. More... | |
template<typename T > | |
T & | operator() (Expected< T &> &&E) const |
Check E. More... | |
Helper for check-and-exit error handling.
For tool use only. NOT FOR USE IN LIBRARY CODE.
|
inline |
|
inline |
|
inline |
|
inline |