Add new constructor for const pool bool
authorChris Lattner <sabre@nondot.org>
Sat, 21 Jul 2001 19:15:26 +0000 (19:15 +0000)
committerChris Lattner <sabre@nondot.org>
Sat, 21 Jul 2001 19:15:26 +0000 (19:15 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@245 91177308-0d34-0410-b5e6-96231b3b80d8

lib/VMCore/Type.cpp

index 2e0bee55e55f6d9b599fc0d42a6ad5bbc569bfe8..e28c3d139175c2c3bd0298a576856399b2f33760 100644 (file)
@@ -70,8 +70,10 @@ public:
 
   // isSigned - Return whether a numeric type is signed.
   virtual bool isSigned() const { return 1; }
-  
-  // isIntegral - Return whether this is one of the integer types
+
+  // isIntegral - Equivalent to isSigned() || isUnsigned, but with only a single
+  // virtual function invocation.
+  //
   virtual bool isIntegral() const { return 1; }
 };
 
@@ -84,8 +86,10 @@ public:
 
   // isUnsigned - Return whether a numeric type is signed.
   virtual bool isUnsigned() const { return 1; }
-  
-  // isIntegral - Return whether this is one of the integer types
+
+  // isIntegral - Equivalent to isSigned() || isUnsigned, but with only a single
+  // virtual function invocation.
+  //
   virtual bool isIntegral() const { return 1; }
 };