diff options
author | Nikolas Klauser <nikolasklauser@berlin.de> | 2024-11-28 23:07:45 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-11-28 23:07:45 +0100 |
commit | d648eed5899c4be10f1f7866eebef2bc171e673f (patch) | |
tree | e8aeae87449b946ba2694d1623af9f041c9902e4 /llvm/lib/Object/WasmObjectFile.cpp | |
parent | 59716479fc2f78ccabb2fc47b23cdc636d4ce122 (diff) | |
download | llvm-d648eed5899c4be10f1f7866eebef2bc171e673f.zip llvm-d648eed5899c4be10f1f7866eebef2bc171e673f.tar.gz llvm-d648eed5899c4be10f1f7866eebef2bc171e673f.tar.bz2 |
[libc++] Simplify the implementation of reserve() and shrink_to_fit() (#113453)
Since we changed the implementation of `reserve(size_type)` to only ever
extend,
it doesn't make a ton of sense anymore to have `__shrink_or_extend`,
since the code
paths of `reserve` and `shrink_to_fit` are now almost completely
separate.
This patch splits up `__shrink_or_extend` so that the individual parts
are in `reserve`
and `shrink_to_fit` depending on where they are needed.
Diffstat (limited to 'llvm/lib/Object/WasmObjectFile.cpp')
0 files changed, 0 insertions, 0 deletions