aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2001-07-21 19:15:26 +0000
committerChris Lattner <sabre@nondot.org>2001-07-21 19:15:26 +0000
commit1a2cefcb40eea0fc08f3b0cc960e5b1f7a77e483 (patch)
treeaacaeb13c0eb74e7831ded0065064e19578abf47
parentf59bd5331e050395fd7c454493c8d9f8a0372b98 (diff)
Add new constructor for const pool bool
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@245 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/VMCore/Type.cpp12
1 files changed, 8 insertions, 4 deletions
diff --git a/lib/VMCore/Type.cpp b/lib/VMCore/Type.cpp
index 2e0bee55e5..e28c3d1391 100644
--- a/lib/VMCore/Type.cpp
+++ b/lib/VMCore/Type.cpp
@@ -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; }
};