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 | c1efaecf0373f1a55c5ef4c234357cf726fc0600 (patch) | |
tree | c449e41d3715898f32c75c618a20dea1b3910fd2 /lib/AST/ASTContext.cpp | |
parent | aca13a7df407b32a6ee497a0646f83184edefb49 (diff) |
Eliminate CXXRecordType
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@65671 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AST/ASTContext.cpp')
-rw-r--r-- | lib/AST/ASTContext.cpp | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/lib/AST/ASTContext.cpp b/lib/AST/ASTContext.cpp index 702dba2431..749655d871 100644 --- a/lib/AST/ASTContext.cpp +++ b/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; |