llvm/lib/Object
Rafael Espindola 21a01d1ea8 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
2013-04-15 14:44:24 +00:00
..
Archive.cpp [Object][Archive] Improve performance. 2013-02-03 10:48:50 +00:00
Binary.cpp Object: Add support for opening stdin. 2011-10-08 00:17:58 +00:00
CMakeLists.txt build/CMake: Finish removal of add_llvm_library_dependencies. 2011-11-29 19:25:30 +00:00
COFFObjectFile.cpp Remove unused argument. 2013-04-07 16:40:00 +00:00
ELFObjectFile.cpp [Support] Add LLVM_IS_UNALIGNED_ACCESS_FAST. 2013-02-03 10:48:31 +00:00
Error.cpp Object: Add proper error handling. 2011-06-25 17:55:23 +00:00
LLVMBuild.txt Object: drop bogus VMCore dependency 2012-04-03 15:48:10 +00:00
MachOObject.cpp Make the host endianness check an integer constant expression. 2013-04-15 14:44:24 +00:00
MachOObjectFile.cpp Finish templating MachObjectFile over endianness. 2013-04-13 01:45:40 +00:00
Makefile
Object.cpp Fixed ObjectFile functions: 2011-11-29 17:40:10 +00:00
ObjectFile.cpp Remove unused argument. 2013-04-07 16:40:00 +00:00