diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2013-04-15 14:44:24 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2013-04-15 14:44:24 +0000 |
commit | 21a01d1ea89dba97c4f9e1f9f41485729a4046bc (patch) | |
tree | 74856a1ba8c29ceff5341282b373a58bdb2cc4d5 /include/llvm/ADT/SmallBitVector.h | |
parent | 604b3573f955d61ba87215c25ba2f52477c71ecc (diff) | |
download | external_llvm-21a01d1ea89dba97c4f9e1f9f41485729a4046bc.zip external_llvm-21a01d1ea89dba97c4f9e1f9f41485729a4046bc.tar.gz external_llvm-21a01d1ea89dba97c4f9e1f9f41485729a4046bc.tar.bz2 |
Make the host endianness check an integer constant expression.
I will remove the isBigEndianHost function once I update clang.
The ifdef logic is designed to
* not use configure/cmake to avoid breaking -arch i686 -arch ppc.
* default to little endian
* be as small as possible
It looks like sys/endian.h is the preferred header on most modern BSD systems,
but it is better to change this in a followup patch as machine/endian.h is
available on FreeBSD, OpenBSD, NetBSD and OS X.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@179527 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/ADT/SmallBitVector.h')
0 files changed, 0 insertions, 0 deletions