From e6ec983baace8ea0b20b28ff716817428c30dc58 Mon Sep 17 00:00:00 2001 From: Douglas Gregor Date: Wed, 12 Nov 2014 01:12:47 +0000 Subject: [PATCH] Make Sema::CollectMultipleMethodsInGlobalPool() public. 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. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@221744 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/clang/Sema/Sema.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/include/clang/Sema/Sema.h b/include/clang/Sema/Sema.h index f75c86983c..3716f00127 100644 --- a/include/clang/Sema/Sema.h +++ b/include/clang/Sema/Sema.h @@ -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& 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, -- 2.40.0