rust/compiler/rustc_codegen_llvm/src/debuginfo
Nicholas Nethercote a13be655a5 Avoid unnecessary line lookup.
`lookup_debug_loc` calls `SourceMap::lookup_line`, which does a binary
search over the files, and then a binary search over the lines within
the found file. It then calls `SourceFile::line_begin_pos`, which redoes
the binary search over the lines within the found file.

This commit removes the second binary search over the lines, instead
getting the line starting pos directly using the result of the first
binary search over the lines.

(And likewise for `get_span_loc`, in the cranelift backend.)
2023-06-29 11:26:39 +10:00
..
metadata Store generator field names in GeneratorLayout. 2023-06-19 16:50:52 +00:00
create_scope_map.rs EarlyBinder::new -> EarlyBinder::bind 2023-05-29 13:46:10 +02:00
doc.md fix most compiler/ doctests 2022-05-02 17:40:30 -07:00
gdb.rs use new c literals instead of cstr! macro 2023-05-31 19:40:24 +03:00
metadata.rs Make closure_saved_names_of_captured_variables a query. 2023-06-19 16:50:52 +00:00
mod.rs Avoid unnecessary line lookup. 2023-06-29 11:26:39 +10:00
namespace.rs Remove in_band_lifetimes from rustc_codegen_llvm 2021-12-16 14:43:32 -05:00
utils.rs rustc_middle: Remove trait DefIdTree 2023-03-02 23:46:44 +04:00