diff options
| author | gingerBill <bill@gingerbill.org> | 2023-09-19 16:15:26 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2023-09-19 16:15:26 +0100 |
| commit | e748d2f2af40895f1b067aaa74ac2ca2b737a243 (patch) | |
| tree | ea176294a9a2b7845751ef96aab63f28bed61523 /src/llvm-c/BitReader.h | |
| parent | ecde06e3a31179bd8f86383fd65cfbce31ab6d9a (diff) | |
Update to LLVM-17
Diffstat (limited to 'src/llvm-c/BitReader.h')
| -rw-r--r-- | src/llvm-c/BitReader.h | 9 |
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); |