mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-26 04:32:44 +01:00
Add isIntegral() method to SignedIntType and UnsignedIntType.
llvm-svn: 224
This commit is contained in:
parent
c91af7439a
commit
0025c5f58a
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user