LLVM  10.0.0svn
Macros | Typedefs | Functions
Error.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define LLVMErrorSuccess   0
 

Typedefs

typedef struct LLVMOpaqueError * LLVMErrorRef
 Opaque reference to an error instance. More...
 
typedef const void * LLVMErrorTypeId
 Error type identifier. More...
 

Functions

LLVMErrorTypeId LLVMGetErrorTypeId (LLVMErrorRef Err)
 Returns the type id for the given error instance, which must be a failure value (i.e. More...
 
void LLVMConsumeError (LLVMErrorRef Err)
 Dispose of the given error without handling it. More...
 
charLLVMGetErrorMessage (LLVMErrorRef Err)
 Returns the given string's error message. More...
 
void LLVMDisposeErrorMessage (char *ErrMsg)
 Dispose of the given error message. More...
 
LLVMErrorTypeId LLVMGetStringErrorTypeId (void)
 Returns the type id for llvm StringError. More...
 

Macro Definition Documentation

◆ LLVMErrorSuccess

#define LLVMErrorSuccess   0

Typedef Documentation

◆ LLVMErrorRef

typedef struct LLVMOpaqueError* LLVMErrorRef

Opaque reference to an error instance.

Null serves as the 'success' value.

Definition at line 26 of file Error.h.

◆ LLVMErrorTypeId

typedef const void* LLVMErrorTypeId

Error type identifier.

Definition at line 31 of file Error.h.

Function Documentation

◆ LLVMConsumeError()

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.

Definition at line 155 of file Error.cpp.

◆ LLVMDisposeErrorMessage()

void LLVMDisposeErrorMessage ( char ErrMsg)

Dispose of the given error message.

Definition at line 165 of file Error.cpp.

◆ LLVMGetErrorMessage()

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.

Definition at line 157 of file Error.cpp.

◆ LLVMGetErrorTypeId()

LLVMErrorTypeId LLVMGetErrorTypeId ( LLVMErrorRef  Err)

Returns the type id for the given error instance, which must be a failure value (i.e.

non-null).

Definition at line 151 of file Error.cpp.

◆ LLVMGetStringErrorTypeId()

LLVMErrorTypeId LLVMGetStringErrorTypeId ( void  )

Returns the type id for llvm StringError.

Definition at line 167 of file Error.cpp.