diff options
| author | Josh Stone <jistone@redhat.com> | 2020-09-01 18:27:02 -0700 |
|---|---|---|
| committer | Josh Stone <jistone@redhat.com> | 2020-09-01 18:27:02 -0700 |
| commit | 469ca379d6dc0ade5ee08f14892c1549bb383e77 (patch) | |
| tree | 51d82da09a15482edf3e98004004fab1d2f3588a /compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp | |
| parent | 130359cb05246fcacdde61baa2613419ef6570c7 (diff) | |
| download | rust-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 'compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
