1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
//! The IR reader

use super::prelude::*;

extern "C" {
    /// Read LLVM IR from a memory buffer and convert it to an in-memory Module.
    ///
    /// Returns 0 on success, and an optional human-readable description of any
    /// errors that occurred.
    pub fn LLVMParseIRInContext(ContextRef: LLVMContextRef,
                                MemBuf: LLVMMemoryBufferRef,
                                OutM: *mut LLVMModuleRef,
                                OutMessage: *mut *mut ::libc::c_char)
                                -> LLVMBool;
}