diff options
author | Nikolas Klauser <nikolasklauser@berlin.de> | 2025-07-02 21:48:30 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-07-02 21:48:30 +0200 |
commit | 3ee0f97b950a550ef14e3adbdf45f507273f2190 (patch) | |
tree | 0766f1a6a5d7f33a5ed143d9e7825a4742286798 /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | b173c12b545462546cfdd5e2e1e8c88e6bcc2c65 (diff) | |
download | llvm-3ee0f97b950a550ef14e3adbdf45f507273f2190.zip llvm-3ee0f97b950a550ef14e3adbdf45f507273f2190.tar.gz llvm-3ee0f97b950a550ef14e3adbdf45f507273f2190.tar.bz2 |
[libc++] Avoid including vector in <functional> (#144310)
`vector` has been used in a very simple way in `boyer_moore_searcher`.
We can instead just use `unique_ptr<T[]>`, which is a lot simpler,
allowing us to drop the `vector` dependency while not losing any
expressiveness in the code. As a nice side effect, this also reduces the
time it takes to instantiate the `boyer_moore_searcher` constructor from
26ms to 22ms on my machine.
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions