diff options
author | Erick Tryzelaar <idadesub@users.sourceforge.net> | 2010-03-06 00:30:06 +0000 |
---|---|---|
committer | Erick Tryzelaar <idadesub@users.sourceforge.net> | 2010-03-06 00:30:06 +0000 |
commit | 381268e629041da9add8736ddbfe87b7bb420f38 (patch) | |
tree | d375bbed34449f4f19d3ef8d67a2fffb64830420 /llvm/include/llvm-c/BitWriter.h | |
parent | dc78d16a03bfbab573da26915995c18f172c3555 (diff) | |
download | bcm5719-llvm-381268e629041da9add8736ddbfe87b7bb420f38.tar.gz bcm5719-llvm-381268e629041da9add8736ddbfe87b7bb420f38.zip |
Add a LLVMWriteBitcodeToFD that exposes the raw_fd_ostream options.
llvm-svn: 97858
Diffstat (limited to 'llvm/include/llvm-c/BitWriter.h')
-rw-r--r-- | llvm/include/llvm-c/BitWriter.h | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/llvm/include/llvm-c/BitWriter.h b/llvm/include/llvm-c/BitWriter.h index 008ff9f2c10..bcbfb111492 100644 --- a/llvm/include/llvm-c/BitWriter.h +++ b/llvm/include/llvm-c/BitWriter.h @@ -28,13 +28,16 @@ extern "C" { /*===-- Operations on modules ---------------------------------------------===*/ -/* Writes a module to an open file descriptor. Returns 0 on success. - Closes the Handle. Use dup first if this is not what you want. */ -int LLVMWriteBitcodeToFileHandle(LLVMModuleRef M, int Handle); - -/* Writes a module to the specified path. Returns 0 on success. */ +/** Writes a module to the specified path. Returns 0 on success. */ int LLVMWriteBitcodeToFile(LLVMModuleRef M, const char *Path); +/** Writes a module to an open file descriptor. Returns 0 on success. */ +int LLVMWriteBitcodeToFD(LLVMModuleRef M, int FD, int ShouldClose, + int Unbuffered); + +/** Deprecated for LLVMWriteBitcodeToFD. Writes a module to an open file + descriptor. Returns 0 on success. Closes the Handle. */ +int LLVMWriteBitcodeToFileHandle(LLVMModuleRef M, int Handle); #ifdef __cplusplus } |