diff options
| author | Fariborz Jahanian <fjahanian@apple.com> | 2007-12-07 00:18:54 +0000 |
|---|---|---|
| committer | Fariborz Jahanian <fjahanian@apple.com> | 2007-12-07 00:18:54 +0000 |
| commit | 66c5dfc193c4090b67c5effb0e80e287b94de17e (patch) | |
| tree | 03710468c4123fe443ad2ce26d4199b687b324dd /AST | |
| parent | b2f08e06f02d8e7de60f6614472bc7a414c3a405 (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')
| -rw-r--r-- | AST/ASTContext.cpp | 9 |
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) |
