diff options
author | John McCall <rjmccall@apple.com> | 2010-10-06 00:23:35 +0000 |
---|---|---|
committer | John McCall <rjmccall@apple.com> | 2010-10-06 00:23:35 +0000 |
commit | 3ff83dd534ccc828203670ce3f5125a4eb4199f8 (patch) | |
tree | a30130346a1a623a534ba5623d2effed490b2f98 /lib/AST/Type.cpp | |
parent | aca7f7bab0102341863a0d1bdb048d69213ae362 (diff) |
Use a more conventional/efficient implementation for isEnumeralType()
and isBuiltinType().
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@115724 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AST/Type.cpp')
-rw-r--r-- | lib/AST/Type.cpp | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/lib/AST/Type.cpp b/lib/AST/Type.cpp index 8e6aa23618..61390c8539 100644 --- a/lib/AST/Type.cpp +++ b/lib/AST/Type.cpp @@ -470,12 +470,6 @@ bool Type::isIntegralOrEnumerationType() const { return false; } -bool Type::isEnumeralType() const { - if (const TagType *TT = dyn_cast<TagType>(CanonicalType)) - return TT->getDecl()->isEnum(); - return false; -} - bool Type::isBooleanType() const { if (const BuiltinType *BT = dyn_cast<BuiltinType>(CanonicalType)) return BT->getKind() == BuiltinType::Bool; |