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 | 2bbd03a7551146404d0db339882db113b6718721 (patch) | |
| tree | b9f74c9ce521e2f0233cbb28ccab6c9cd6d56325 /clang/AST/ASTContext.cpp | |
| parent | c829e5cdf07db4335fb16657baea89b4803b1942 (diff) | |
| download | bcm5719-llvm-2bbd03a7551146404d0db339882db113b6718721.tar.gz bcm5719-llvm-2bbd03a7551146404d0db339882db113b6718721.zip | |
Patch to implement "Protocol" as a built-in type declared as
"@class Protocol;"
llvm-svn: 44670
Diffstat (limited to 'clang/AST/ASTContext.cpp')
| -rw-r--r-- | clang/AST/ASTContext.cpp | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/clang/AST/ASTContext.cpp b/clang/AST/ASTContext.cpp index 3f5a7fbc586..e8ed9a209fb 100644 --- a/clang/AST/ASTContext.cpp +++ b/clang/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) |

