Teach Sema::ActOnInstanceMessage() about private methods. That is, methods declared in an implementation (but not listed in the interface).
This commit is only 95% of the bug fix. The last piece to this puzzle is to add the method decls to the implementation incrementally (as we encounter them). At the moment, the methods aren't added until we see an @end (which is too late).
I will complete this later...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@43989 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/Sema/Sema.h b/Sema/Sema.h
index 2d6c425..de464c1 100644
--- a/Sema/Sema.h
+++ b/Sema/Sema.h
@@ -85,7 +85,7 @@
/// ObjcImplementations - Keep track of all of the classes with
/// @implementation's, so that we can emit errors on duplicates.
- llvm::SmallPtrSet<IdentifierInfo*, 8> ObjcImplementations;
+ llvm::DenseMap<IdentifierInfo*, ObjcImplementationDecl*> ObjcImplementations;
/// ObjcProtocols - Keep track of all protocol declarations declared
/// with @protocol keyword, so that we can emit errors on duplicates and