aboutsummaryrefslogtreecommitdiff
path: root/lib/AST/Type.cpp
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2012-03-08 02:52:18 +0000
committerDaniel Dunbar <daniel@zuster.org>2012-03-08 02:52:18 +0000
commit76e035a529775dc8fd31124f819745a33a085796 (patch)
tree34c7a2ebd3013aa5b5482a20d72a56367d3a6082 /lib/AST/Type.cpp
parent2fb4ae36825ca3a0cbe7e845c5747062870066be (diff)
[AST] Change Type::isIntegerType to be inlined(). It is very popular.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@152289 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AST/Type.cpp')
-rw-r--r--lib/AST/Type.cpp11
1 files changed, 0 insertions, 11 deletions
diff --git a/lib/AST/Type.cpp b/lib/AST/Type.cpp
index ce805617f8..fd8a03fd1a 100644
--- a/lib/AST/Type.cpp
+++ b/lib/AST/Type.cpp
@@ -612,17 +612,6 @@ bool Type::isIntegralOrUnscopedEnumerationType() const {
-bool Type::isIntegerType() const {
- if (const BuiltinType *BT = dyn_cast<BuiltinType>(CanonicalType))
- return BT->getKind() >= BuiltinType::Bool &&
- BT->getKind() <= BuiltinType::Int128;
- if (const EnumType *ET = dyn_cast<EnumType>(CanonicalType))
- // Incomplete enum types are not treated as integer types.
- // FIXME: In C++, enum types are never integer types.
- return ET->getDecl()->isComplete() && !ET->getDecl()->isScoped();
- return false;
-}
-
bool Type::isCharType() const {
if (const BuiltinType *BT = dyn_cast<BuiltinType>(CanonicalType))
return BT->getKind() == BuiltinType::Char_U ||