aboutsummaryrefslogtreecommitdiff
path: root/src/llvm-c/BitReader.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/llvm-c/BitReader.h')
-rw-r--r--src/llvm-c/BitReader.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/llvm-c/BitReader.h b/src/llvm-c/BitReader.h
index 012c0e63d..088107468 100644
--- a/src/llvm-c/BitReader.h
+++ b/src/llvm-c/BitReader.h
@@ -61,8 +61,13 @@ LLVMBool LLVMGetBitcodeModuleInContext(LLVMContextRef ContextRef,
LLVMMemoryBufferRef MemBuf,
LLVMModuleRef *OutM, char **OutMessage);
-/** Reads a module from the specified path, returning via the OutMP parameter a
- * module provider which performs lazy deserialization. Returns 0 on success. */
+/** Reads a module from the given memory buffer, returning via the OutMP
+ * parameter a module provider which performs lazy deserialization.
+ *
+ * Returns 0 on success.
+ *
+ * Takes ownership of \p MemBuf if (and only if) the module was read
+ * successfully. */
LLVMBool LLVMGetBitcodeModuleInContext2(LLVMContextRef ContextRef,
LLVMMemoryBufferRef MemBuf,
LLVMModuleRef *OutM);