LLVM API Documentation
|
Functions | |
| int | LLVMWriteBitcodeToFile (LLVMModuleRef M, const char *Path) |
| int | LLVMWriteBitcodeToFD (LLVMModuleRef M, int FD, int ShouldClose, int Unbuffered) |
| int | LLVMWriteBitcodeToFileHandle (LLVMModuleRef M, int Handle) |
| 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().
| int LLVMWriteBitcodeToFileHandle | ( | LLVMModuleRef | M, |
| int | Handle | ||
| ) |
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().