diff options
author | Duncan Sands <baldrick@free.fr> | 2007-12-12 23:03:45 +0000 |
---|---|---|
committer | Duncan Sands <baldrick@free.fr> | 2007-12-12 23:03:45 +0000 |
commit | 67f1c493d105fdfb8ffa980ff82ff7d9e3fafefc (patch) | |
tree | f4deb78e05abb63d0a95fc6c7eb5f0bcbf58d20b /lib/Target/TargetData.cpp | |
parent | 8d2ed33f6f16850a7062d1fb5ab66fd025f301e8 (diff) |
Remove host endianness info from TargetData and
put it in a new header System/Host.h instead.
Instead of getting the endianness from configure,
calculate it directly.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44959 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/TargetData.cpp')
-rw-r--r-- | lib/Target/TargetData.cpp | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/lib/Target/TargetData.cpp b/lib/Target/TargetData.cpp index 4929805473..8c466543fa 100644 --- a/lib/Target/TargetData.cpp +++ b/lib/Target/TargetData.cpp @@ -25,7 +25,6 @@ #include "llvm/Support/ManagedStatic.h" #include "llvm/ADT/DenseMap.h" #include "llvm/ADT/StringExtras.h" -#include "llvm/Config/config.h" #include <algorithm> #include <cstdlib> #include <sstream> @@ -133,14 +132,6 @@ const TargetAlignElem TargetData::InvalidAlignmentElem = // TargetData Class Implementation //===----------------------------------------------------------------------===// -bool TargetData::hostIsLittleEndian() const { -#ifdef LSB_FIRST - return true; -#else - return false; -#endif -} - /*! A TargetDescription string consists of a sequence of hyphen-delimited specifiers for target endianness, pointer size and alignments, and various |