summaryrefslogtreecommitdiff
path: root/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp
diff options
context:
space:
mode:
authorKazu Hirata <kazu@google.com>2024-09-20 07:55:02 -0700
committerGitHub <noreply@github.com>2024-09-20 07:55:02 -0700
commit69dbf468bf0beb87e2a8d9f9f597296d642028d6 (patch)
treef453a9e3270447733490bf4a95e2a786e900685f /lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp
parent9f8f1d9890fcbae96b92fa0bee5a6f9e1f953ebd (diff)
[Sema] Avoid repeated hash lookups (NFC) (#109375)
GlobalMethodPool, the type of MethodPool, is a type wrapping DenseMap and exposes only a subset of the DenseMap methods. This patch adds operator[] to GlobalMethodPool so that we can avoid repeated hash lookups. I don't bother using references or rvalue references in operator[] because Selector, the key type, is small and trivially copyable. Note that Selector is a class that wraps a PointerUnion.
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp')
0 files changed, 0 insertions, 0 deletions