diff options
author | Tom Tromey <tromey@adacore.com> | 2024-02-14 08:00:03 -0700 |
---|---|---|
committer | Tom Tromey <tromey@adacore.com> | 2024-03-18 08:10:06 -0600 |
commit | 2b5f0fe3230f707ab736d759af4bf436d2c43837 (patch) | |
tree | 850ef712e8122c65b3bdeba5f2c947ecba9de4a7 /include | |
parent | a8e1e2aaf8783092b74330e2d4c727f814533cc9 (diff) | |
download | binutils-2b5f0fe3230f707ab736d759af4bf436d2c43837.zip binutils-2b5f0fe3230f707ab736d759af4bf436d2c43837.tar.gz binutils-2b5f0fe3230f707ab736d759af4bf436d2c43837.tar.bz2 |
Use string_view in quirk_rust_enum
quirk_rust_enum makes string copies to store in an unordered_map.
However, the original strings have an appropriate lifetime, and so no
copying is needed. With C++17, we can rely on string_view having a
std::hash specialization, so this patch changes this code to use
string_view rather than string.
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions