aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target/Target.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-01-09 22:27:07 +0000
committerChris Lattner <sabre@nondot.org>2010-01-09 22:27:07 +0000
commitd686c8e73f74e37ab5f647b65a12051ee6cbad16 (patch)
tree06a78b36c6cc4de9d05158641373fb4e1bde72a0 /lib/Target/Target.cpp
parent95fa80af6f0451bb52cd2d86dea1b165c5e2675a (diff)
downloadexternal_llvm-d686c8e73f74e37ab5f647b65a12051ee6cbad16.zip
external_llvm-d686c8e73f74e37ab5f647b65a12051ee6cbad16.tar.gz
external_llvm-d686c8e73f74e37ab5f647b65a12051ee6cbad16.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 'lib/Target/Target.cpp')
-rw-r--r--lib/Target/Target.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/Target.cpp b/lib/Target/Target.cpp
index cddf49e..f5c969a 100644
--- a/lib/Target/Target.cpp
+++ b/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) {