LLVM: include/llvm-c/Error.h Source File (original) (raw)
Go to the documentation of this file.
1
2
3
4
5
6
7
8
9
10
11
12
13
14#ifndef LLVM_C_ERROR_H
15#define LLVM_C_ERROR_H
16
19
21
22
23
24
25
26
27
28
29#define LLVMErrorSuccess 0
30
31
32
33
35
36
37
38
40
41
42
43
44
46
47
48
49
50
51
52
54
55
56
57
58
59
60
62
63
64
65
66
67
68
70
71
72
73
75
76
77
78
80
81
82
83
85
86
87
88
89
91
92#endif
#define LLVM_C_EXTERN_C_BEGIN
#define LLVM_C_EXTERN_C_END
#define LLVM_C_ABI
LLVM_C_ABI is the export/visibility macro used to mark symbols declared in llvm-c as exported when bu...
LLVM_C_ABI void LLVMCantFail(LLVMErrorRef Err)
Report a fatal error if Err is a failure value.
LLVM_C_ABI char * LLVMGetErrorMessage(LLVMErrorRef Err)
Returns the given string's error message.
LLVM_C_ABI LLVMErrorRef LLVMCreateStringError(const char *ErrMsg)
Create a StringError.
LLVM_C_ABI void LLVMConsumeError(LLVMErrorRef Err)
Dispose of the given error without handling it.
LLVM_C_ABI LLVMErrorTypeId LLVMGetErrorTypeId(LLVMErrorRef Err)
Returns the type id for the given error instance, which must be a failure value (i....
LLVM_C_ABI void LLVMDisposeErrorMessage(char *ErrMsg)
Dispose of the given error message.
const void * LLVMErrorTypeId
Error type identifier.
Definition Error.h:39
struct LLVMOpaqueError * LLVMErrorRef
Opaque reference to an error instance.
Definition Error.h:34
LLVM_C_ABI LLVMErrorTypeId LLVMGetStringErrorTypeId(void)
Returns the type id for llvm StringError.