Project Alice
|
Macros | |
#define | LLVMErrorSuccess 0 |
Typedefs | |
typedef struct LLVMOpaqueError * | LLVMErrorRef |
typedef const void * | LLVMErrorTypeId |
typedef void(* | LLVMFatalErrorHandler) (const char *Reason) |
Functions | |
LLVMErrorTypeId | LLVMGetErrorTypeId (LLVMErrorRef Err) |
void | LLVMConsumeError (LLVMErrorRef Err) |
char * | LLVMGetErrorMessage (LLVMErrorRef Err) |
void | LLVMDisposeErrorMessage (char *ErrMsg) |
LLVMErrorTypeId | LLVMGetStringErrorTypeId (void) |
LLVMErrorRef | LLVMCreateStringError (const char *ErrMsg) |
void | LLVMInstallFatalErrorHandler (LLVMFatalErrorHandler Handler) |
void | LLVMResetFatalErrorHandler (void) |
void | LLVMEnablePrettyStackTrace (void) |
typedef struct LLVMOpaqueError* LLVMErrorRef |
typedef const void* LLVMErrorTypeId |
typedef void(* LLVMFatalErrorHandler) (const char *Reason) |
Definition at line 27 of file ErrorHandling.h.
void LLVMConsumeError | ( | LLVMErrorRef | Err | ) |
Dispose of the given error without handling it. This operation consumes the error, and the given LLVMErrorRef value is not usable once this call returns. Note: This method only needs to be called if the error is not being passed to some other consuming operation, e.g. LLVMGetErrorMessage.
LLVMErrorRef LLVMCreateStringError | ( | const char * | ErrMsg | ) |
Create a StringError.
void LLVMDisposeErrorMessage | ( | char * | ErrMsg | ) |
Dispose of the given error message.
void LLVMEnablePrettyStackTrace | ( | void | ) |
Enable LLVM's built-in stack trace code. This intercepts the OS's crash signals and prints which component of LLVM you were in at the time if the crash.
char * LLVMGetErrorMessage | ( | LLVMErrorRef | Err | ) |
Returns the given string's error message. This operation consumes the error, and the given LLVMErrorRef value is not usable once this call returns. The caller is responsible for disposing of the string by calling LLVMDisposeErrorMessage.
LLVMErrorTypeId LLVMGetErrorTypeId | ( | LLVMErrorRef | Err | ) |
Returns the type id for the given error instance, which must be a failure value (i.e. non-null).
LLVMErrorTypeId LLVMGetStringErrorTypeId | ( | void | ) |
Returns the type id for llvm StringError.
void LLVMInstallFatalErrorHandler | ( | LLVMFatalErrorHandler | Handler | ) |
Install a fatal error handler. By default, if LLVM detects a fatal error, it will call exit(1). This may not be appropriate in many contexts. For example, doing exit(1) will bypass many crash reporting/tracing system tools. This function allows you to install a callback that will be invoked prior to the call to exit(1).
void LLVMResetFatalErrorHandler | ( | void | ) |
Reset the fatal error handler. This resets LLVM's fatal error handling behavior to the default.