summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorVikram S. Adve <vadve@cs.uiuc.edu>2001-07-21 12:32:48 +0000
committerVikram S. Adve <vadve@cs.uiuc.edu>2001-07-21 12:32:48 +0000
commita4e6f88fbba40e5818906b6a75e5cc15870bf4b8 (patch)
treedc269864ff405c5ba889e790b0e5c8d9f11ed651 /lib
parent230365abf7cf242fcc0bdca4e81f33de1fe136c3 (diff)
downloadexternal_llvm-a4e6f88fbba40e5818906b6a75e5cc15870bf4b8.zip
external_llvm-a4e6f88fbba40e5818906b6a75e5cc15870bf4b8.tar.gz
external_llvm-a4e6f88fbba40e5818906b6a75e5cc15870bf4b8.tar.bz2
Add isIntegral() method to SignedIntType and UnsignedIntType.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@224 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/VMCore/Type.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/VMCore/Type.cpp b/lib/VMCore/Type.cpp
index ef6a892..2e0bee5 100644
--- a/lib/VMCore/Type.cpp
+++ b/lib/VMCore/Type.cpp
@@ -70,6 +70,9 @@ 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
+ virtual bool isIntegral() const { return 1; }
};
class UnsignedIntType : public Type {
@@ -81,6 +84,9 @@ 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
+ virtual bool isIntegral() const { return 1; }
};
static struct TypeType : public Type {