mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-05 02:07:16 +00:00
Add isIntegral() method to SignedIntType and UnsignedIntType.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@224 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
230365abf7
commit
a4e6f88fbb
@ -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