diff options
author | Chris Lattner <sabre@nondot.org> | 2009-04-01 06:23:52 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-04-01 06:23:52 +0000 |
commit | 03d9f34a96ea28eaa698cc779462a1ce1dc79105 (patch) | |
tree | f708dde3aed9bc81c5158e475bf63954c0237ede /lib/AST/ASTContext.cpp | |
parent | 5fb5dfb6646464db3cd6d54a6332375c8fe36b75 (diff) |
remove ASTContext::buildObjCInterfaceType, which breaks canonical
types. It is no longer needed now that the code generator
re-lays-out interfaces if they are defines after being laid out
from a forward decl.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@68194 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AST/ASTContext.cpp')
-rw-r--r-- | lib/AST/ASTContext.cpp | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/lib/AST/ASTContext.cpp b/lib/AST/ASTContext.cpp index bdc7e4484c..fc1e0a2062 100644 --- a/lib/AST/ASTContext.cpp +++ b/lib/AST/ASTContext.cpp @@ -1344,18 +1344,6 @@ QualType ASTContext::getObjCInterfaceType(ObjCInterfaceDecl *Decl) { return QualType(Decl->TypeForDecl, 0); } -/// buildObjCInterfaceType - Returns a new type for the interface -/// declaration, regardless. It also removes any previously built -/// record declaration so caller can rebuild it. -QualType ASTContext::buildObjCInterfaceType(ObjCInterfaceDecl *Decl) { - RecordDecl *&RD = ASTRecordForInterface[Decl]; - if (RD) - RD = 0; - Decl->TypeForDecl = new(*this,8) ObjCInterfaceType(Type::ObjCInterface, Decl); - Types.push_back(Decl->TypeForDecl); - return QualType(Decl->TypeForDecl, 0); -} - /// \brief Retrieve the template type parameter type for a template /// parameter with the given depth, index, and (optionally) name. QualType ASTContext::getTemplateTypeParmType(unsigned Depth, unsigned Index, |