Remove unused function.

llvm-svn: 130622
This commit is contained in:
Benjamin Kramer 2011-04-30 19:55:59 +00:00
parent e63dbc373a
commit ed5ca78dc5
1 changed files with 0 additions and 14 deletions

View File

@ -1500,20 +1500,6 @@ bool RecordType::classof(const TagType *TT) {
return isa<RecordDecl>(TT->getDecl());
}
static uint64_t countBasesWithFields(QualType BaseType) {
uint64_t BasesWithFields = 0;
if (const RecordType *T = BaseType->getAs<RecordType>()) {
CXXRecordDecl *RD = cast<CXXRecordDecl>(T->getDecl());
for (CXXRecordDecl::field_iterator Field = RD->field_begin(),
E = RD->field_end(); Field != E; ++Field)
BasesWithFields = 1;
for (CXXRecordDecl::base_class_const_iterator B = RD->bases_begin(),
BE = RD->bases_end(); B != BE; ++B)
BasesWithFields += countBasesWithFields(B->getType());
}
return BasesWithFields;
}
bool EnumType::classof(const TagType *TT) {
return isa<EnumDecl>(TT->getDecl());
}