From aa4c7b56f86d5ed0ee3cdbb748b363246c3f8fe6 Mon Sep 17 00:00:00 2001 From: "Vikram S. Adve" Date: Sat, 21 Jul 2001 12:32:48 +0000 Subject: [PATCH] Add isIntegral() method to SignedIntType and UnsignedIntType. llvm-svn: 224 --- llvm/lib/VMCore/Type.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/llvm/lib/VMCore/Type.cpp b/llvm/lib/VMCore/Type.cpp index ef6a892135d6..2e0bee55e55f 100644 --- a/llvm/lib/VMCore/Type.cpp +++ b/llvm/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 {