about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2024-02-09 14:41:50 +0100
committerGitHub <noreply@github.com>2024-02-09 14:41:50 +0100
commitdf2281b058a0396f3e8775056f3173d3870fc7dd (patch)
treed51738896190528431c507646c71deb3ee40956e /compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp
parent46a0448405732b09d19e4ed53606bed240f882fa (diff)
parent795be51dd931848b8cbf3dc84c526ca92634803c (diff)
downloadrust-df2281b058a0396f3e8775056f3173d3870fc7dd.tar.gz
rust-df2281b058a0396f3e8775056f3173d3870fc7dd.zip
Rollup merge of #120704 - amandasystems:silly-region-name-rewrite, r=compiler-errors
A drive-by rewrite of `give_region_a_name()`

This drive-by rewrite makes the cache-updating nature of the method clearer, using the Entry API into the hash table for region names to capture the update-insert nature of the method. May be marginally more efficient since it only runtime-borrows and indexes the map once, but in this context the performance impact is almost certainly completely negligible.

Note that this commit should preserve all externally visible behaviour. Notably, it preserves the debug logging:

1. printing even in the case of a `None` for the new computed name, and
2. only printing on new values, begin silent on reused values
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp')
0 files changed, 0 insertions, 0 deletions