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 | 25963c6113ea82b568b7c1f48b24ad7c89a24279 (patch) | |
tree | 8646d1e025fab5f3379844083540d879d16bcb5e /llvm/lib/Target/Target.cpp | |
parent | e23003d1f1276f24dca2ec064f6cda0a64dec642 (diff) | |
download | bcm5719-llvm-25963c6113ea82b568b7c1f48b24ad7c89a24279.tar.gz bcm5719-llvm-25963c6113ea82b568b7c1f48b24ad7c89a24279.zip |
"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!
llvm-svn: 93079
Diffstat (limited to 'llvm/lib/Target/Target.cpp')
-rw-r--r-- | llvm/lib/Target/Target.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/Target.cpp b/llvm/lib/Target/Target.cpp index cddf49e5154..f5c969ae133 100644 --- a/llvm/lib/Target/Target.cpp +++ b/llvm/lib/Target/Target.cpp @@ -34,7 +34,7 @@ char *LLVMCopyStringRepOfTargetData(LLVMTargetDataRef TD) { } LLVMByteOrdering LLVMByteOrder(LLVMTargetDataRef TD) { - return unwrap(TD)->isLittleEndian(); + return unwrap(TD)->isLittleEndian() ? LLVMLittleEndian : LLVMBigEndian; } unsigned LLVMPointerSize(LLVMTargetDataRef TD) { |