summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2007-12-11 00:28:59 +0000
committerChris Lattner <sabre@nondot.org>2007-12-11 00:28:59 +0000
commit57d7d3f2d76d8d042faa95d82374b0c24cfce35f (patch)
treec7dbc74af3dc0d9983cc6501965297c0f96e5dc4 /include
parentbbc6597f02d108f32b5bdc7711cc67386196017b (diff)
downloadllvm-57d7d3f2d76d8d042faa95d82374b0c24cfce35f.tar.gz
llvm-57d7d3f2d76d8d042faa95d82374b0c24cfce35f.tar.bz2
llvm-57d7d3f2d76d8d042faa95d82374b0c24cfce35f.tar.xz
Move TargetData::hostIsLittleEndian out of line, which means we
don't have to #include config.h in it. #including config.h breaks other projects that have their own autoconf stuff and try to #include the llvm headers. One obscure example is llvm-gcc. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44825 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/Target/TargetData.h11
1 files changed, 2 insertions, 9 deletions
diff --git a/include/llvm/Target/TargetData.h b/include/llvm/Target/TargetData.h
index fd52ef380a..fcc57a1b2a 100644
--- a/include/llvm/Target/TargetData.h
+++ b/include/llvm/Target/TargetData.h
@@ -23,7 +23,6 @@
#include "llvm/Pass.h"
#include "llvm/Support/DataTypes.h"
#include "llvm/ADT/SmallVector.h"
-#include "llvm/Config/config.h"
#include <string>
namespace llvm {
@@ -143,14 +142,8 @@ public:
bool isLittleEndian() const { return LittleEndian; }
bool isBigEndian() const { return !LittleEndian; }
- /// Host endianness...
- bool hostIsLittleEndian() const {
-#ifdef LSB_FIRST
- return true;
-#else
- return false;
-#endif
- }
+ /// Host endianness.
+ bool hostIsLittleEndian() const;
bool hostIsBigEndian() const { return !hostIsLittleEndian(); }
/// getStringRepresentation - Return the string representation of the