diff options
author | Fariborz Jahanian <fjahanian@apple.com> | 2007-10-30 17:06:23 +0000 |
---|---|---|
committer | Fariborz Jahanian <fjahanian@apple.com> | 2007-10-30 17:06:23 +0000 |
commit | c2939bc82ce177c0413feb0cd9ce70aefd6235fb (patch) | |
tree | 48554b322671167c31fb10a6d6e6cf1831f492dd /Sema/SemaDecl.cpp | |
parent | 752d6ef8c886b4de3365efef15449cd6f939baf1 (diff) |
Added type encoding for 'id' type.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@43504 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'Sema/SemaDecl.cpp')
-rw-r--r-- | Sema/SemaDecl.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Sema/SemaDecl.cpp b/Sema/SemaDecl.cpp index e125ce54ab..f4717ce66b 100644 --- a/Sema/SemaDecl.cpp +++ b/Sema/SemaDecl.cpp @@ -1963,6 +1963,14 @@ Sema::DeclTy *Sema::ActOnMethodDeclaration( TypeTy **ArgTypes, IdentifierInfo **ArgNames, AttributeList *AttrList, tok::ObjCKeywordKind MethodDeclKind) { llvm::SmallVector<ParmVarDecl*, 16> Params; + + // We cannot build type 'id' laziliy. It is needed when checking if a + // type is an 'id' (via call to isObjcIdType) even if there is no + // need for the dafult 'id' type. + // FIXME: Depending on the need to compare to 'id', this may have to go + // somewhere else. At this time, this is a good enough place to do type + // encoding of methods and ivars for the rewrite client. + GetObjcIdType(MethodLoc); for (unsigned i = 0; i < Sel.getNumArgs(); i++) { // FIXME: arg->AttrList must be stored too! |