From: Chris Lattner Date: Mon, 26 Nov 2001 23:04:08 +0000 (+0000) Subject: Move DataTypes.h from llvm/Support to just Support X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=360e17eaf1a2abda82b02235dc57d26d8f83c937;p=oota-llvm.git Move DataTypes.h from llvm/Support to just Support git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1399 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/Support/DataTypes.h b/include/Support/DataTypes.h new file mode 100644 index 00000000000..0b20d90acd7 --- /dev/null +++ b/include/Support/DataTypes.h @@ -0,0 +1,34 @@ +//===-- include/Support/DataTypes.h - Define fixed size types ----*- C++ -*--=// +// +// This file contains definitions to figure out the size of _HOST_ data types. +// This file is important because different host OS's define different macros, +// which makes portability tough. This file exports the following definitions: +// +// LITTLE_ENDIAN: is #define'd if the host is little endian +// int64_t : is a typedef for the signed 64 bit system type +// uint64_t : is a typedef for the unsigned 64 bit system type +// +// No library is required when using these functinons. +// +//===----------------------------------------------------------------------===// + +// TODO: This file sucks. Not only does it not work, but this stuff should be +// autoconfiscated anyways. Major FIXME + + +#ifndef LLVM_SUPPORT_DATATYPES_H +#define LLVM_SUPPORT_DATATYPES_H + +#ifdef LINUX +#define __STDC_LIMIT_MACROS 1 +#include // Defined by ISO C 99 +#include + +#else +#include +#ifdef _LITTLE_ENDIAN +#define LITTLE_ENDIAN 1 +#endif +#endif + +#endif diff --git a/include/llvm/Bytecode/Primitives.h b/include/llvm/Bytecode/Primitives.h index 178904d15ff..e0c25a15ca7 100644 --- a/include/llvm/Bytecode/Primitives.h +++ b/include/llvm/Bytecode/Primitives.h @@ -12,7 +12,7 @@ #ifndef LLVM_BYTECODE_PRIMITIVES_H #define LLVM_BYTECODE_PRIMITIVES_H -#include "llvm/Support/DataTypes.h" +#include "Support/DataTypes.h" #include #include diff --git a/include/llvm/CodeGen/MachineInstr.h b/include/llvm/CodeGen/MachineInstr.h index 32e9462cbee..91ae9def7fc 100644 --- a/include/llvm/CodeGen/MachineInstr.h +++ b/include/llvm/CodeGen/MachineInstr.h @@ -17,7 +17,7 @@ #include #include "llvm/CodeGen/InstrForest.h" -#include "llvm/Support/DataTypes.h" +#include "Support/DataTypes.h" #include "llvm/Support/NonCopyable.h" #include "llvm/Target/MachineInstrInfo.h" #include "llvm/Annotation.h" diff --git a/include/llvm/ConstPoolVals.h b/include/llvm/ConstPoolVals.h index b25ca3edc9e..c1348294c66 100644 --- a/include/llvm/ConstPoolVals.h +++ b/include/llvm/ConstPoolVals.h @@ -9,7 +9,7 @@ #define LLVM_CONSTPOOLVALS_H #include "llvm/User.h" -#include "llvm/Support/DataTypes.h" +#include "Support/DataTypes.h" class ArrayType; class StructType; diff --git a/include/llvm/Support/DataTypes.h b/include/llvm/Support/DataTypes.h deleted file mode 100644 index 0b20d90acd7..00000000000 --- a/include/llvm/Support/DataTypes.h +++ /dev/null @@ -1,34 +0,0 @@ -//===-- include/Support/DataTypes.h - Define fixed size types ----*- C++ -*--=// -// -// This file contains definitions to figure out the size of _HOST_ data types. -// This file is important because different host OS's define different macros, -// which makes portability tough. This file exports the following definitions: -// -// LITTLE_ENDIAN: is #define'd if the host is little endian -// int64_t : is a typedef for the signed 64 bit system type -// uint64_t : is a typedef for the unsigned 64 bit system type -// -// No library is required when using these functinons. -// -//===----------------------------------------------------------------------===// - -// TODO: This file sucks. Not only does it not work, but this stuff should be -// autoconfiscated anyways. Major FIXME - - -#ifndef LLVM_SUPPORT_DATATYPES_H -#define LLVM_SUPPORT_DATATYPES_H - -#ifdef LINUX -#define __STDC_LIMIT_MACROS 1 -#include // Defined by ISO C 99 -#include - -#else -#include -#ifdef _LITTLE_ENDIAN -#define LITTLE_ENDIAN 1 -#endif -#endif - -#endif diff --git a/include/llvm/Support/StringExtras.h b/include/llvm/Support/StringExtras.h index 569ae4240b9..aaae8577ef9 100644 --- a/include/llvm/Support/StringExtras.h +++ b/include/llvm/Support/StringExtras.h @@ -9,7 +9,7 @@ #include #include -#include "llvm/Support/DataTypes.h" +#include "Support/DataTypes.h" class ConstPoolArray; diff --git a/include/llvm/Target/MachineInstrInfo.h b/include/llvm/Target/MachineInstrInfo.h index 506cb9f7a02..01cb2d991ab 100644 --- a/include/llvm/Target/MachineInstrInfo.h +++ b/include/llvm/Target/MachineInstrInfo.h @@ -8,7 +8,7 @@ #define LLVM_TARGET_MACHINEINSTRINFO_H #include "llvm/Target/TargetMachine.h" -#include "llvm/Support/DataTypes.h" +#include "Support/DataTypes.h" #include class MachineInstrDescriptor; diff --git a/include/llvm/Target/TargetCacheInfo.h b/include/llvm/Target/TargetCacheInfo.h index 67b549caa19..21436d09fce 100644 --- a/include/llvm/Target/TargetCacheInfo.h +++ b/include/llvm/Target/TargetCacheInfo.h @@ -11,7 +11,7 @@ #define LLVM_TARGET_MACHINECACHEINFO_H #include "llvm/Target/TargetMachine.h" -#include "llvm/Support/DataTypes.h" +#include "Support/DataTypes.h" #include diff --git a/include/llvm/Target/TargetInstrInfo.h b/include/llvm/Target/TargetInstrInfo.h index 506cb9f7a02..01cb2d991ab 100644 --- a/include/llvm/Target/TargetInstrInfo.h +++ b/include/llvm/Target/TargetInstrInfo.h @@ -8,7 +8,7 @@ #define LLVM_TARGET_MACHINEINSTRINFO_H #include "llvm/Target/TargetMachine.h" -#include "llvm/Support/DataTypes.h" +#include "Support/DataTypes.h" #include class MachineInstrDescriptor; diff --git a/lib/ExecutionEngine/Interpreter/Execution.cpp b/lib/ExecutionEngine/Interpreter/Execution.cpp index 524237b2dda..538e39ad0cb 100644 --- a/lib/ExecutionEngine/Interpreter/Execution.cpp +++ b/lib/ExecutionEngine/Interpreter/Execution.cpp @@ -12,7 +12,6 @@ #include "llvm/Type.h" #include "llvm/ConstPoolVals.h" #include "llvm/Assembly/Writer.h" -#include "llvm/Support/DataTypes.h" #include "llvm/Target/TargetData.h" #include "llvm/GlobalVariable.h" #include // For fmod diff --git a/lib/ExecutionEngine/Interpreter/Interpreter.h b/lib/ExecutionEngine/Interpreter/Interpreter.h index 7e1fde1e8d5..44b382bd9f0 100644 --- a/lib/ExecutionEngine/Interpreter/Interpreter.h +++ b/lib/ExecutionEngine/Interpreter/Interpreter.h @@ -13,7 +13,7 @@ #include "llvm/Module.h" #include "llvm/Method.h" -#include "llvm/Support/DataTypes.h" +#include "Support/DataTypes.h" #include "llvm/Assembly/CachedWriter.h" extern CachedWriter CW; // Object to accellerate printing of LLVM