Go to the documentation of this file.
14 #ifndef LLVM_C_ERROR_H
15 #define LLVM_C_ERROR_H
28 #define LLVMErrorSuccess 0
LLVMErrorRef LLVMCreateStringError(const char *ErrMsg)
Create a StringError.
const typedef void * LLVMErrorTypeId
Error type identifier.
LLVMErrorTypeId LLVMGetStringErrorTypeId(void)
Returns the type id for llvm StringError.
void LLVMConsumeError(LLVMErrorRef Err)
Dispose of the given error without handling it.
#define LLVM_C_EXTERN_C_END
LLVMErrorTypeId LLVMGetErrorTypeId(LLVMErrorRef Err)
Returns the type id for the given error instance, which must be a failure value (i....
char * LLVMGetErrorMessage(LLVMErrorRef Err)
Returns the given string's error message.
#define LLVM_C_EXTERN_C_BEGIN
struct LLVMOpaqueError * LLVMErrorRef
Opaque reference to an error instance.
void LLVMDisposeErrorMessage(char *ErrMsg)
Dispose of the given error message.