]> granicus.if.org Git - clang/commit
Improve how we find private method decls. This involved:
authorSteve Naroff <snaroff@apple.com>
Tue, 18 Dec 2007 01:30:32 +0000 (01:30 +0000)
committerSteve Naroff <snaroff@apple.com>
Tue, 18 Dec 2007 01:30:32 +0000 (01:30 +0000)
commita56f616744b929aa7115034e7e2f9a0b8df545f6
treef3672ba2e6262f64fd39485a3336dda5b8e5b8c4
parent7acda7c4a0e4aec6c003b3169ca45a5f3bc7e033
Improve how we find private method decls. This involved:

- Changed Sema::ObjcActOnStartOfMethodDef() to register the methods with the global pools.
- Changed Sema::ActOnInstanceMessage() to look in global pools (should be much less error prone).
- Added a test case to message.m (for lookup that was broken).

Misc changes while I was investigating this...

- Changed Sema::ActOnAtEnd() to call AddFactoryMethodToGlobalPool (this looked like a cut/paste error).
- Added a comment and tweaked another where I was using the first person.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@45142 91177308-0d34-0410-b5e6-96231b3b80d8
Sema/SemaDeclObjC.cpp
Sema/SemaExpr.cpp
test/Sema/message.m