LLVM 20.0.0git
Macros | Typedefs | Functions
Error.h File Reference
#include "llvm-c/ExternC.h"

Go to the source code of this file.

Macros

#define LLVMErrorSuccess   0
 

Typedefs

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

Functions

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