diff options
| author | Chris Lattner <sabre@nondot.org> | 2001-07-21 19:15:26 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2001-07-21 19:15:26 +0000 |
| commit | 77ba32f4ccda3d089538b308edf07b397e6545df (patch) | |
| tree | 82a22ce15a6cb152e28f35b1bb8173c40225b599 | |
| parent | 55406840e27abdb35347c7edce7b856b14d21137 (diff) | |
| download | bcm5719-llvm-77ba32f4ccda3d089538b308edf07b397e6545df.tar.gz bcm5719-llvm-77ba32f4ccda3d089538b308edf07b397e6545df.zip | |
Add new constructor for const pool bool
llvm-svn: 245
| -rw-r--r-- | llvm/lib/VMCore/Type.cpp | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/llvm/lib/VMCore/Type.cpp b/llvm/lib/VMCore/Type.cpp index 2e0bee55e55..e28c3d13917 100644 --- a/llvm/lib/VMCore/Type.cpp +++ b/llvm/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; } }; |

