From: Chris Lattner Date: Thu, 18 Jun 2009 04:56:53 +0000 (+0000) Subject: Don't use int8_t, that requires DataTypes.h X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=b7b39987bb1f9acc4cc0efe0f4c2d1ee5e2c9148;p=oota-llvm.git Don't use int8_t, that requires DataTypes.h git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73682 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/CodeGen/LiveInterval.h b/include/llvm/CodeGen/LiveInterval.h index 3e9089ed115..a52919d313d 100644 --- a/include/llvm/CodeGen/LiveInterval.h +++ b/include/llvm/CodeGen/LiveInterval.h @@ -23,7 +23,6 @@ #include "llvm/ADT/SmallVector.h" #include "llvm/Support/Allocator.h" -#include "llvm/Support/DataTypes.h" #include #include #include @@ -52,13 +51,15 @@ namespace llvm { class VNInfo { private: - static const uint8_t HAS_PHI_KILL = 1, - REDEF_BY_EC = 1 << 1, - IS_PHI_DEF = 1 << 2, - IS_UNUSED = 1 << 3, - IS_DEF_ACCURATE = 1 << 4; + enum { + HAS_PHI_KILL = 1, + REDEF_BY_EC = 1 << 1, + IS_PHI_DEF = 1 << 2, + IS_UNUSED = 1 << 3, + IS_DEF_ACCURATE = 1 << 4 + }; - uint8_t flags; + unsigned char flags; public: /// The ID number of this value.