diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2007-01-11 18:21:29 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2007-01-11 18:21:29 +0000 |
commit | 4fe16d607d11e29d742208894909733f5ad01f8f (patch) | |
tree | a669ba57373e87d31c3af6f301fe4a61f773f4b3 /include/llvm/Type.h | |
parent | 34dceb47573b0aedd188b5e72bb848ba29a4960f (diff) |
Rename BoolTy as Int1Ty. Patch by Sheng Zhou.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33076 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Type.h')
-rw-r--r-- | include/llvm/Type.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/include/llvm/Type.h b/include/llvm/Type.h index 0c1b1d58bc..29180a00e5 100644 --- a/include/llvm/Type.h +++ b/include/llvm/Type.h @@ -71,7 +71,7 @@ public: /// enum TypeID { // PrimitiveTypes .. make sure LastPrimitiveTyID stays up to date - VoidTyID = 0 , BoolTyID, // 0, 1: Basics... + VoidTyID = 0 , Int1TyID, // 0, 1: Basics... Int8TyID, // 2 : 8 bit type... Int16TyID, // 3 : 16 bit type... Int32TyID, // 4 : 32 bit type... @@ -165,9 +165,9 @@ public: bool isInteger() const { return ID >= Int8TyID && ID <= Int64TyID; } /// isIntegral - Returns true if this is an integral type, which is either - /// BoolTy or one of the Integer types. + /// Int1Ty or one of the Integer types. /// - bool isIntegral() const { return isInteger() || this == BoolTy; } + bool isIntegral() const { return isInteger() || this == Int1Ty; } /// isFloatingPoint - Return true if this is one of the two floating point /// types @@ -209,7 +209,7 @@ public: /// bool isSized() const { // If it's a primitive, it is always sized. - if (ID >= BoolTyID && ID <= DoubleTyID || ID == PointerTyID) + if (ID >= Int1TyID && ID <= DoubleTyID || ID == PointerTyID) return true; // If it is not something that can have a size (e.g. a function or label), // it doesn't have a size. @@ -248,7 +248,7 @@ public: /// will be promoted to if passed through a variable argument /// function. const Type *getVAArgsPromotedType() const { - if (ID == BoolTyID || ID == Int8TyID || ID == Int16TyID) + if (ID == Int1TyID || ID == Int8TyID || ID == Int16TyID) return Type::Int32Ty; else if (ID == FloatTyID) return Type::DoubleTy; @@ -288,7 +288,7 @@ public: //===--------------------------------------------------------------------===// // These are the builtin types that are always available... // - static Type *VoidTy , *BoolTy; + static Type *VoidTy , *Int1Ty; static Type *Int8Ty , *Int16Ty, *Int32Ty, *Int64Ty; static Type *FloatTy, *DoubleTy; |