aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Basic/Module.cpp
diff options
context:
space:
mode:
authorPavel Labath <pavel@labath.sk>2024-06-03 10:34:44 +0200
committerGitHub <noreply@github.com>2024-06-03 10:34:44 +0200
commit763b96c86d81d51d0db430791a61fd1e8a406bce (patch)
treee5a7f1ba5b3f930a4363d535d5087e95c5afb348 /clang/lib/Basic/Module.cpp
parentce73e17e3ab5ccfa33a977843e82a9bbfb6b4ce3 (diff)
downloadllvm-763b96c86d81d51d0db430791a61fd1e8a406bce.zip
llvm-763b96c86d81d51d0db430791a61fd1e8a406bce.tar.gz
llvm-763b96c86d81d51d0db430791a61fd1e8a406bce.tar.bz2
[lldb] Avoid (unlimited) GetNumChildren calls when printing values (#93946)
For some data formatters, even getting the number of children can be an expensive operations (e.g., needing to walk a linked list to determine the number of elements). This is then wasted work when we know we will be printing only small number of them. This patch replaces the calls to GetNumChildren (at least those on the "frame var" path) with the calls to the capped version, passing the value of `max-children-count` setting (plus one)
Diffstat (limited to 'clang/lib/Basic/Module.cpp')
0 files changed, 0 insertions, 0 deletions