about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorJosh Stone <jistone@redhat.com>2020-09-01 18:27:02 -0700
committerJosh Stone <jistone@redhat.com>2020-09-01 18:27:02 -0700
commit469ca379d6dc0ade5ee08f14892c1549bb383e77 (patch)
tree51d82da09a15482edf3e98004004fab1d2f3588a /src/rustllvm/RustWrapper.cpp
parent130359cb05246fcacdde61baa2613419ef6570c7 (diff)
downloadrust-469ca379d6dc0ade5ee08f14892c1549bb383e77.tar.gz
rust-469ca379d6dc0ade5ee08f14892c1549bb383e77.zip
Avoid rehashing Fingerprint as a map key
This introduces a no-op `Unhasher` for map keys that are already hash-
like, for example `Fingerprint` and its wrapper `DefPathHash`. For these
we can directly produce the `u64` hash for maps. The first use of this
is `def_path_hash_to_def_id: Option<UnhashMap<DefPathHash, DefId>>`.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions