summaryrefslogtreecommitdiffstats
path: root/clang/lib
diff options
context:
space:
mode:
authorPeter Collingbourne <peter@pcc.me.uk>2012-01-26 03:33:46 +0000
committerPeter Collingbourne <peter@pcc.me.uk>2012-01-26 03:33:46 +0000
commitdad62f1bce77450f6e16c55af4ed016bf14f2d92 (patch)
tree35ddfa752bc664a926e44dca2e0259eba81b716f /clang/lib
parent53860cfeb0f4bdd2ef2341624b4a662498d8d329 (diff)
downloadbcm5719-llvm-dad62f1bce77450f6e16c55af4ed016bf14f2d92.tar.gz
bcm5719-llvm-dad62f1bce77450f6e16c55af4ed016bf14f2d92.zip
Simplify {Record,Enum}Type::classof.
llvm-svn: 149038
Diffstat (limited to 'clang/lib')
-rw-r--r--clang/lib/AST/Type.cpp8
1 files changed, 0 insertions, 8 deletions
diff --git a/clang/lib/AST/Type.cpp b/clang/lib/AST/Type.cpp
index b6ce59e977d..698474b8383 100644
--- a/clang/lib/AST/Type.cpp
+++ b/clang/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();
}
OpenPOWER on IntegriCloud