LLVM API Documentation

Functions
Bit Writer
LLVM-C: C interface to LLVM
Collaboration diagram for Bit Writer:

Functions

int LLVMWriteBitcodeToFile (LLVMModuleRef M, const char *Path)
int LLVMWriteBitcodeToFD (LLVMModuleRef M, int FD, int ShouldClose, int Unbuffered)
int LLVMWriteBitcodeToFileHandle (LLVMModuleRef M, int Handle)

Function Documentation

int LLVMWriteBitcodeToFD ( LLVMModuleRef  M,
int  FD,
int  ShouldClose,
int  Unbuffered 
)

Writes a module to an open file descriptor. Returns 0 on success.

Definition at line 31 of file BitWriter.cpp.

References llvm::unwrap(), and llvm::WriteBitcodeToFile().

Referenced by LLVMWriteBitcodeToFileHandle().

int LLVMWriteBitcodeToFile ( LLVMModuleRef  M,
const char *  Path 
)

Writes a module to the specified path. Returns 0 on success.

Definition at line 20 of file BitWriter.cpp.

References llvm::sys::fs::F_None, llvm::unwrap(), and llvm::WriteBitcodeToFile().

Deprecated for LLVMWriteBitcodeToFD. Writes a module to an open file descriptor. Returns 0 on success. Closes the Handle.

Definition at line 39 of file BitWriter.cpp.

References LLVMWriteBitcodeToFD().