summaryrefslogtreecommitdiffstats
path: root/clang/lib/AST/ASTContext.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-04-01 06:23:52 +0000
committerChris Lattner <sabre@nondot.org>2009-04-01 06:23:52 +0000
commit3088a31e96ab75f567e272dc5f6ca5fe347d6caa (patch)
tree533c9c4da16631fa7c1c50e1f681621bdbc02212 /clang/lib/AST/ASTContext.cpp
parent0bb090923349f80d4b461dde91772422087efb61 (diff)
downloadbcm5719-llvm-3088a31e96ab75f567e272dc5f6ca5fe347d6caa.tar.gz
bcm5719-llvm-3088a31e96ab75f567e272dc5f6ca5fe347d6caa.zip
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. llvm-svn: 68194
Diffstat (limited to 'clang/lib/AST/ASTContext.cpp')
-rw-r--r--clang/lib/AST/ASTContext.cpp12
1 files changed, 0 insertions, 12 deletions
diff --git a/clang/lib/AST/ASTContext.cpp b/clang/lib/AST/ASTContext.cpp
index bdc7e4484c2..fc1e0a20627 100644
--- a/clang/lib/AST/ASTContext.cpp
+++ b/clang/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,
OpenPOWER on IntegriCloud