aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/Config
diff options
context:
space:
mode:
authorDuncan Sands <baldrick@free.fr>2007-12-10 17:43:13 +0000
committerDuncan Sands <baldrick@free.fr>2007-12-10 17:43:13 +0000
commit7feee8f380a8d811a6a343682fa1d2baa121a6d9 (patch)
tree6ea58d5ba05a4007f3278611d3c90be7c39f8ab5 /include/llvm/Config
parenta264a91e3833542b5b2948a498b4e311b4f35ad5 (diff)
downloadexternal_llvm-7feee8f380a8d811a6a343682fa1d2baa121a6d9.zip
external_llvm-7feee8f380a8d811a6a343682fa1d2baa121a6d9.tar.gz
external_llvm-7feee8f380a8d811a6a343682fa1d2baa121a6d9.tar.bz2
Fix PR1836: in the interpreter, read and write apints
using the minimum possible number of bytes. For little endian targets run on little endian machines, apints are stored in memory from LSB to MSB as before. For big endian targets on big endian machines they are stored from MSB to LSB which wasn't always the case before (if the target and host endianness doesn't match values are stored according to the host's endianness). Doing this requires knowing the endianness of the host, which is determined when configuring - thanks go to Anton for this. Only having access to little endian machines I was unable to properly test the big endian part, which is also the most complicated... git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44796 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Config')
-rw-r--r--include/llvm/Config/config.h.in6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/llvm/Config/config.h.in b/include/llvm/Config/config.h.in
index 32e154a..64858f2 100644
--- a/include/llvm/Config/config.h.in
+++ b/include/llvm/Config/config.h.in
@@ -494,6 +494,9 @@
/* Installation prefix directory */
#undef LLVM_PREFIX
+/* Define if this target is little endian */
+#undef LSB_FIRST
+
/* Define if the OS needs help to load dependent libraries for dlopen(). */
#undef LTDL_DLOPEN_DEPLIBS
@@ -511,6 +514,9 @@
/* Define to the system default library search path. */
#undef LTDL_SYSSEARCHPATH
+/* Define if this target is big endian */
+#undef MSB_FIRST
+
/* Define if /dev/zero should be used when mapping RWX memory, or undefine if
its not necessary */
#undef NEED_DEV_ZERO_FOR_MMAP