diff options
author | Douglas Gregor <dgregor@apple.com> | 2009-02-28 01:32:25 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2009-02-28 01:32:25 +0000 |
commit | 89ee6822d8a6ac9fad18105c8f68194315c6edc5 (patch) | |
tree | 5924f75913729abf792257d488d767f90fbb1cae /clang/lib/AST/ASTContext.cpp | |
parent | 2f235908eda485e9100876245da88a1d01d2c6e0 (diff) | |
download | bcm5719-llvm-89ee6822d8a6ac9fad18105c8f68194315c6edc5.tar.gz bcm5719-llvm-89ee6822d8a6ac9fad18105c8f68194315c6edc5.zip |
Eliminate CXXRecordType
llvm-svn: 65671
Diffstat (limited to 'clang/lib/AST/ASTContext.cpp')
-rw-r--r-- | clang/lib/AST/ASTContext.cpp | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/clang/lib/AST/ASTContext.cpp b/clang/lib/AST/ASTContext.cpp index 702dba2431a..749655d8712 100644 --- a/clang/lib/AST/ASTContext.cpp +++ b/clang/lib/AST/ASTContext.cpp @@ -448,7 +448,6 @@ ASTContext::getTypeInfo(const Type *T) { break; } case Type::Record: - case Type::CXXRecord: case Type::Enum: { const TagType *TT = cast<TagType>(T); @@ -1231,13 +1230,7 @@ QualType ASTContext::getTypeDeclType(TypeDecl *Decl, TypeDecl* PrevDecl) { } else if (ObjCInterfaceDecl *ObjCInterface = dyn_cast<ObjCInterfaceDecl>(Decl)) return getObjCInterfaceType(ObjCInterface); - if (CXXRecordDecl *CXXRecord = dyn_cast<CXXRecordDecl>(Decl)) { - if (PrevDecl) - Decl->TypeForDecl = PrevDecl->TypeForDecl; - else - Decl->TypeForDecl = new (*this,8) CXXRecordType(CXXRecord); - } - else if (RecordDecl *Record = dyn_cast<RecordDecl>(Decl)) { + if (RecordDecl *Record = dyn_cast<RecordDecl>(Decl)) { if (PrevDecl) Decl->TypeForDecl = PrevDecl->TypeForDecl; else @@ -2841,7 +2834,6 @@ QualType ASTContext::mergeTypes(QualType LHS, QualType RHS) { case Type::FunctionNoProto: return mergeFunctionTypes(LHS, RHS); case Type::Record: - case Type::CXXRecord: case Type::Enum: // FIXME: Why are these compatible? if (isObjCIdStructType(LHS) && isObjCClassStructType(RHS)) return LHS; |