llvm_sys/
error.rs

1pub const LLVMErrorSuccess: ::libc::c_int = 0;
2
3#[derive(Debug)]
4pub enum LLVMOpaqueError {}
5
6pub type LLVMErrorRef = *mut LLVMOpaqueError;
7
8pub type LLVMErrorTypeId = *const ::libc::c_void;
9
10extern "C" {
11    pub fn LLVMGetErrorTypeId(Err: LLVMErrorRef) -> LLVMErrorTypeId;
12    pub fn LLVMConsumeError(Err: LLVMErrorRef);
13    pub fn LLVMGetErrorMessage(Err: LLVMErrorRef) -> *mut ::libc::c_char;
14    pub fn LLVMDisposeErrorMessage(ErrMsg: *mut ::libc::c_char);
15    pub fn LLVMGetStringErrorTypeId() -> LLVMErrorTypeId;
16    /// Create a StringError.
17    pub fn LLVMCreateStringError(ErrMst: *const ::libc::c_char) -> LLVMErrorRef;
18}