diff options
author | Peter Collingbourne <peter@pcc.me.uk> | 2012-01-26 03:33:46 +0000 |
---|---|---|
committer | Peter Collingbourne <peter@pcc.me.uk> | 2012-01-26 03:33:46 +0000 |
commit | 95b68f94d28a4b94f4c3fb029b9f1690e1bb728b (patch) | |
tree | 0c2915eda619a4bd2e83efaa753940acddb90305 /lib | |
parent | e26198c0980027f0975448709063b56f667ab506 (diff) |
Simplify {Record,Enum}Type::classof.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@149038 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/AST/Type.cpp | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/lib/AST/Type.cpp b/lib/AST/Type.cpp index b6ce59e977..698474b838 100644 --- a/lib/AST/Type.cpp +++ b/lib/AST/Type.cpp @@ -1802,14 +1802,6 @@ CXXRecordDecl *InjectedClassNameType::getDecl() const { return cast<CXXRecordDecl>(getInterestingTagDecl(Decl)); } -bool RecordType::classof(const TagType *TT) { - return isa<RecordDecl>(TT->getDecl()); -} - -bool EnumType::classof(const TagType *TT) { - return isa<EnumDecl>(TT->getDecl()); -} - IdentifierInfo *TemplateTypeParmType::getIdentifier() const { return isCanonicalUnqualified() ? 0 : getDecl()->getIdentifier(); } |