Project Alice
Loading...
Searching...
No Matches
Error.h
Go to the documentation of this file.
1/*===------- llvm-c/Error.h - llvm::Error class C Interface -------*- C -*-===*\
2|* *|
3|* Part of the LLVM Project, under the Apache License v2.0 with LLVM *|
4|* Exceptions. *|
5|* See https://llvm.org/LICENSE.txt for license information. *|
6|* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception *|
7|* *|
8|*===----------------------------------------------------------------------===*|
9|* *|
10|* This file defines the C interface to LLVM's Error class. *|
11|* *|
12\*===----------------------------------------------------------------------===*/
13
14#ifndef LLVM_C_ERROR_H
15#define LLVM_C_ERROR_H
16
17#include "llvm-c/ExternC.h"
18
20
28#define LLVMErrorSuccess 0
29
33typedef struct LLVMOpaqueError *LLVMErrorRef;
34
38typedef const void *LLVMErrorTypeId;
39
45
53
61
65void LLVMDisposeErrorMessage(char *ErrMsg);
66
71
76
82
83#endif
#define LLVM_C_EXTERN_C_BEGIN
Definition: ExternC.h:35
#define LLVM_C_EXTERN_C_END
Definition: ExternC.h:36
char * LLVMGetErrorMessage(LLVMErrorRef Err)
LLVMErrorTypeId LLVMGetErrorTypeId(LLVMErrorRef Err)
LLVMErrorTypeId LLVMGetStringErrorTypeId(void)
void LLVMDisposeErrorMessage(char *ErrMsg)
const void * LLVMErrorTypeId
Definition: Error.h:38
struct LLVMOpaqueError * LLVMErrorRef
Definition: Error.h:33
LLVMErrorRef LLVMCreateStringError(const char *ErrMsg)
void LLVMConsumeError(LLVMErrorRef Err)