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 | d686c8e73f74e37ab5f647b65a12051ee6cbad16 (patch) | |
tree | 06a78b36c6cc4de9d05158641373fb4e1bde72a0 /include/llvm-c/Analysis.h | |
parent | 95fa80af6f0451bb52cd2d86dea1b165c5e2675a (diff) | |
download | llvm-d686c8e73f74e37ab5f647b65a12051ee6cbad16.tar.gz llvm-d686c8e73f74e37ab5f647b65a12051ee6cbad16.tar.bz2 llvm-d686c8e73f74e37ab5f647b65a12051ee6cbad16.tar.xz |
"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/Analysis.h')
-rw-r--r-- | include/llvm-c/Analysis.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/llvm-c/Analysis.h b/include/llvm-c/Analysis.h index 68d8e65db4..e1e44872b1 100644 --- a/include/llvm-c/Analysis.h +++ b/include/llvm-c/Analysis.h @@ -36,12 +36,12 @@ typedef enum { /* Verifies that a module is valid, taking the specified action if not. Optionally returns a human-readable description of any invalid constructs. OutMessage must be disposed with LLVMDisposeMessage. */ -int LLVMVerifyModule(LLVMModuleRef M, LLVMVerifierFailureAction Action, - char **OutMessage); +LLVMBool LLVMVerifyModule(LLVMModuleRef M, LLVMVerifierFailureAction Action, + char **OutMessage); /* Verifies that a single function is valid, taking the specified action. Useful for debugging. */ -int LLVMVerifyFunction(LLVMValueRef Fn, LLVMVerifierFailureAction Action); +LLVMBool LLVMVerifyFunction(LLVMValueRef Fn, LLVMVerifierFailureAction Action); /* Open up a ghostview window that displays the CFG of the current function. Useful for debugging. */ |