llvm_sys/bit_writer.rs
1//! Output of the LLVM bitcode format.
2
3use super::prelude::*;
4
5extern "C" {
6 /// Write a module to the specified path.
7 ///
8 /// Returns 0 on success.
9 pub fn LLVMWriteBitcodeToFile(M: LLVMModuleRef, Path: *const ::libc::c_char) -> ::libc::c_int;
10 /// Write a module to an open file descriptor.
11 ///
12 /// Returns 0 on success.
13 pub fn LLVMWriteBitcodeToFD(
14 M: LLVMModuleRef,
15 FD: ::libc::c_int,
16 ShouldClose: ::libc::c_int,
17 Unbuffered: ::libc::c_int,
18 ) -> ::libc::c_int;
19 /// Deprecated: use LLVMWriteBitcodeToFD
20 pub fn LLVMWriteBitcodeToFileHandle(M: LLVMModuleRef, Handle: ::libc::c_int) -> ::libc::c_int;
21 /// Writes a module to a new memory buffer.
22 pub fn LLVMWriteBitcodeToMemoryBuffer(M: LLVMModuleRef) -> LLVMMemoryBufferRef;
23}