llvm_sys/
error.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
pub const LLVMErrorSuccess: ::libc::c_int = 0;

#[derive(Debug)]
pub enum LLVMOpaqueError {}

pub type LLVMErrorRef = *mut LLVMOpaqueError;

pub type LLVMErrorTypeId = *const ::libc::c_void;

extern "C" {
    pub fn LLVMGetErrorTypeId(Err: LLVMErrorRef) -> LLVMErrorTypeId;
    pub fn LLVMConsumeError(Err: LLVMErrorRef);
    pub fn LLVMGetErrorMessage(Err: LLVMErrorRef) -> *mut ::libc::c_char;
    pub fn LLVMDisposeErrorMessage(ErrMsg: *mut ::libc::c_char);
    pub fn LLVMGetStringErrorTypeId() -> LLVMErrorTypeId;
    /// Create a StringError.
    pub fn LLVMCreateStringError(ErrMst: *const ::libc::c_char) -> LLVMErrorRef;
}