aboutsummaryrefslogtreecommitdiff
path: root/AST/ASTContext.cpp
diff options
context:
space:
mode:
authorFariborz Jahanian <fjahanian@apple.com>2007-12-07 00:18:54 +0000
committerFariborz Jahanian <fjahanian@apple.com>2007-12-07 00:18:54 +0000
commit66c5dfc193c4090b67c5effb0e80e287b94de17e (patch)
tree03710468c4123fe443ad2ce26d4199b687b324dd /AST/ASTContext.cpp
parentb2f08e06f02d8e7de60f6614472bc7a414c3a405 (diff)
Patch to implement "Protocol" as a built-in type declared as
"@class Protocol;" git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44670 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'AST/ASTContext.cpp')
-rw-r--r--AST/ASTContext.cpp9
1 files changed, 2 insertions, 7 deletions
diff --git a/AST/ASTContext.cpp b/AST/ASTContext.cpp
index 3f5a7fbc58..e8ed9a209f 100644
--- a/AST/ASTContext.cpp
+++ b/AST/ASTContext.cpp
@@ -1121,15 +1121,10 @@ void ASTContext::setObjcSelType(TypedefDecl *TD)
SelStructType = rec;
}
-void ASTContext::setObjcProtoType(TypedefDecl *TD)
+void ASTContext::setObjcProtoType(QualType QT)
{
assert(ObjcProtoType.isNull() && "'Protocol' type already set!");
-
- // typedef struct Protocol Protocol;
- ObjcProtoType = TD->getUnderlyingType();
- // Protocol * type
- ObjcProtoType = getPointerType(ObjcProtoType);
- ProtoStructType = TD->getUnderlyingType()->getAsStructureType();
+ ObjcProtoType = QT;
}
void ASTContext::setObjcClassType(TypedefDecl *TD)