projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Introduce LLVMWriteBitcodeToMemoryBuffer C API function.
[oota-llvm.git]
/
include
/
llvm-c
/
BitWriter.h
diff --git
a/include/llvm-c/BitWriter.h
b/include/llvm-c/BitWriter.h
index 0ec8e752dcc4d2d194d8947ad7e3a7b82dc677e4..f25ad3a445f5893d2095572882f9eee49c2568f2 100644
(file)
--- a/
include/llvm-c/BitWriter.h
+++ b/
include/llvm-c/BitWriter.h
@@
-45,6
+45,9
@@
int LLVMWriteBitcodeToFD(LLVMModuleRef M, int FD, int ShouldClose,
descriptor. Returns 0 on success. Closes the Handle. */
int LLVMWriteBitcodeToFileHandle(LLVMModuleRef M, int Handle);
descriptor. Returns 0 on success. Closes the Handle. */
int LLVMWriteBitcodeToFileHandle(LLVMModuleRef M, int Handle);
+/** Writes a module to a new memory buffer and returns it. */
+LLVMMemoryBufferRef LLVMWriteBitcodeToMemoryBuffer(LLVMModuleRef M);
+
/**
* @}
*/
/**
* @}
*/