Mercurial > projects > ldc
comparison tools/binding/llvm/c/BitReader.d @ 1585:29b0f2d11c92
Updated C binding to be more up to date with LLVM.
author | tomas@localhost.localdomain |
---|---|
date | Thu, 22 Oct 2009 13:30:30 +0200 |
parents | 1ba61de8796b |
children |
comparison
equal
deleted
inserted
replaced
1584:f4c56ed32238 | 1585:29b0f2d11c92 |
---|---|
24 | 24 |
25 extern(C): | 25 extern(C): |
26 | 26 |
27 /* Builds a module from the bitcode in the specified memory buffer, returning a | 27 /* Builds a module from the bitcode in the specified memory buffer, returning a |
28 reference to the module via the OutModule parameter. Returns 0 on success. | 28 reference to the module via the OutModule parameter. Returns 0 on success. |
29 Optionally returns a human-readable error message via OutMessage. */ | 29 Optionally returns a human-readable error message via OutMessage. */ |
30 int LLVMParseBitcode(LLVMMemoryBufferRef MemBuf, | 30 int LLVMParseBitcode(LLVMMemoryBufferRef MemBuf, |
31 LLVMModuleRef *OutModule, char **OutMessage); | 31 LLVMModuleRef *OutModule, char **OutMessage); |
32 | 32 |
33 /* Reads a module from the specified path, returning via the OutMP parameter | 33 /* Reads a module from the specified path, returning via the OutMP parameter |
34 a module provider which performs lazy deserialization. Returns 0 on success. | 34 a module provider which performs lazy deserialization. Returns 0 on success. |
35 Optionally returns a human-readable error message via OutMessage. */ | 35 Optionally returns a human-readable error message via OutMessage. */ |
36 int LLVMGetBitcodeModuleProvider(LLVMMemoryBufferRef MemBuf, | 36 int LLVMGetBitcodeModuleProvider(LLVMMemoryBufferRef MemBuf, |
37 LLVMModuleProviderRef *OutMP, | 37 LLVMModuleProviderRef *OutMP, |
38 char **OutMessage); | 38 char **OutMessage); |