]> granicus.if.org Git - clang/commit
Cache queries to lookupPrivateMethod() within ObjCMethodCall::getRuntimeDefinition().
authorTed Kremenek <kremenek@apple.com>
Fri, 7 Dec 2012 07:30:19 +0000 (07:30 +0000)
committerTed Kremenek <kremenek@apple.com>
Fri, 7 Dec 2012 07:30:19 +0000 (07:30 +0000)
commitbf25fb1e2eaea0eadb90d1a9ce91e7d510c8972a
treebfc3ff414d2bc88aa53a7fe3af01e5aa7d7284d3
parente56bb36e8eea89bae7dfe6eb6ea0455af126bf4a
Cache queries to lookupPrivateMethod() within ObjCMethodCall::getRuntimeDefinition().

The same queries can happen thousands of times.  This reduces the analysis
time on one heavy Objective-C file by 2.4%.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@169589 91177308-0d34-0410-b5e6-96231b3b80d8
lib/StaticAnalyzer/Core/CallEvent.cpp