Make Sema::CollectMultipleMethodsInGlobalPool() public.
authorDouglas Gregor <dgregor@apple.com>
Wed, 12 Nov 2014 01:12:47 +0000 (01:12 +0000)
committerDouglas Gregor <dgregor@apple.com>
Wed, 12 Nov 2014 01:12:47 +0000 (01:12 +0000)
It's useful for out-of-tree clients to be able to query the global
Objective-C method pool, and only Sema can do that right now.

llvm-svn: 221744

clang/include/clang/Sema/Sema.h

index f75c869..3716f00 100644 (file)
@@ -2955,14 +2955,16 @@ private:
   ObjCMethodDecl *LookupMethodInGlobalPool(Selector Sel, SourceRange R,
                                            bool receiverIdOrClass,
                                            bool warn, bool instance);
-  
+
+public:
   /// \brief - Returns instance or factory methods in global method pool for
   /// given selector. If no such method or only one method found, function returns
   /// false; otherwise, it returns true
   bool CollectMultipleMethodsInGlobalPool(Selector Sel,
                                           SmallVectorImpl<ObjCMethodDecl*>& Methods,
                                           bool instance);
-    
+
+private:
   /// \brief - Returns a selector which best matches given argument list or
   /// nullptr if none could be found
   ObjCMethodDecl *SelectBestMethod(Selector Sel, MultiExprArg Args,