diff options
| author | Chris Lattner <sabre@nondot.org> | 2010-01-09 22:27:07 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2010-01-09 22:27:07 +0000 |
| commit | 2d13a3e7c91f7e351b5550832db77482bde3f0fa (patch) | |
| tree | 06a78b36c6cc4de9d05158641373fb4e1bde72a0 /include/llvm-c/BitReader.h | |
| parent | 3e1a3a0e3bba4d20037271d13e7cb230ca6d959b (diff) | |
| download | external_llvm-2d13a3e7c91f7e351b5550832db77482bde3f0fa.zip external_llvm-2d13a3e7c91f7e351b5550832db77482bde3f0fa.tar.gz external_llvm-2d13a3e7c91f7e351b5550832db77482bde3f0fa.tar.bz2 | |
"In order to ease automatic bindings generation, it would be helpful if boolean values were distinguishable from integers. The attached patch introduces "typedef int LLVMBool;", and uses LLVMBool instead of int throughout the C API, wherever a boolean value is called for."
Patch by James Y Knight!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@93079 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm-c/BitReader.h')
| -rw-r--r-- | include/llvm-c/BitReader.h | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/include/llvm-c/BitReader.h b/include/llvm-c/BitReader.h index a184f60..59269ce 100644 --- a/include/llvm-c/BitReader.h +++ b/include/llvm-c/BitReader.h @@ -29,24 +29,24 @@ extern "C" { /* Builds a module from the bitcode in the specified memory buffer, returning a reference to the module via the OutModule parameter. Returns 0 on success. Optionally returns a human-readable error message via OutMessage. */ -int LLVMParseBitcode(LLVMMemoryBufferRef MemBuf, - LLVMModuleRef *OutModule, char **OutMessage); +LLVMBool LLVMParseBitcode(LLVMMemoryBufferRef MemBuf, + LLVMModuleRef *OutModule, char **OutMessage); -int LLVMParseBitcodeInContext(LLVMContextRef ContextRef, - LLVMMemoryBufferRef MemBuf, - LLVMModuleRef *OutModule, char **OutMessage); +LLVMBool LLVMParseBitcodeInContext(LLVMContextRef ContextRef, + LLVMMemoryBufferRef MemBuf, + LLVMModuleRef *OutModule, 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. Optionally returns a human-readable error message via OutMessage. */ -int LLVMGetBitcodeModuleProvider(LLVMMemoryBufferRef MemBuf, - LLVMModuleProviderRef *OutMP, - char **OutMessage); - -int LLVMGetBitcodeModuleProviderInContext(LLVMContextRef ContextRef, - LLVMMemoryBufferRef MemBuf, - LLVMModuleProviderRef *OutMP, - char **OutMessage); +LLVMBool LLVMGetBitcodeModuleProvider(LLVMMemoryBufferRef MemBuf, + LLVMModuleProviderRef *OutMP, + char **OutMessage); + +LLVMBool LLVMGetBitcodeModuleProviderInContext(LLVMContextRef ContextRef, + LLVMMemoryBufferRef MemBuf, + LLVMModuleProviderRef *OutMP, + char **OutMessage); #ifdef __cplusplus |
