diff options
| author | Kazu Hirata <kazu@google.com> | 2025-10-25 10:05:51 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-10-25 10:05:51 -0700 |
| commit | 9458ecd298a6d445ade80e750cbbfb89da0e0d5f (patch) | |
| tree | d44610905538112b3e15b4fd5d198ac9c90616c8 /llvm/tools/llvm-cov/llvm-cov.cpp | |
| parent | e4909203feb2f6f4eccb42ed148cc39cedd5b524 (diff) | |
| download | llvm-9458ecd298a6d445ade80e750cbbfb89da0e0d5f.zip llvm-9458ecd298a6d445ade80e750cbbfb89da0e0d5f.tar.gz llvm-9458ecd298a6d445ade80e750cbbfb89da0e0d5f.tar.bz2 | |
[ADT] Move shrink_and_clear to DenseMapBase (NFC) (#165103)
Without this patch, DenseMap and SmallDenseMap have distinct
implementations of shrink_and_clear. These implementations mix a
common high-level algorithm with class-specific logic.
This patch moves the common algorithm into
DenseMapBase::shrink_and_clear. A new private helper,
planShrinkAndClear, now handles the class-specific logic for deciding
whether to shrink the buffer. The base class method now serves as the
single public entry point.
Diffstat (limited to 'llvm/tools/llvm-cov/llvm-cov.cpp')
0 files changed, 0 insertions, 0 deletions
