summaryrefslogtreecommitdiffstats
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorManman Ren <manman.ren@gmail.com>2016-04-07 19:30:20 +0000
committerManman Ren <manman.ren@gmail.com>2016-04-07 19:30:20 +0000
commitd2a3cd72615031ac11664f2bd7c280df16a9a97d (patch)
tree4ef51c081eb6a238ba0d900f0de18d71cd1daa1c /clang/lib/Frontend/CompilerInvocation.cpp
parentf8baa6605674e1a1ff3fd60b750e42291a4442c5 (diff)
downloadbcm5719-llvm-d2a3cd72615031ac11664f2bd7c280df16a9a97d.tar.gz
bcm5719-llvm-d2a3cd72615031ac11664f2bd7c280df16a9a97d.zip
NFC: simplify code in BuildInstanceMessage.
Instead of searching the global pool multiple times: in LookupFactoryMethodInGlobalPool, LookupInstanceMethodInGlobalPool, CollectMultipleMethodsInGlobalPool, and AreMultipleMethodsInGlobalPool, we now collect the method candidates in CollectMultipleMethodsInGlobalPool only, and other functions will use the collected method set. This commit adds parameter "Methods" to AreMultipleMethodsInGlobalPool, and SelectBestMethod. It also changes the implementation of CollectMultipleMethodsInGlobalPool to collect the desired kind first, if none is found, to collect the other kind. This avoids the need to call both LookupFactoryMethodInGlobalPool and LookupInstanceMethodInGlobalPool. llvm-svn: 265711
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud