diff options
| author | Tyson Nottingham <tgnottingham@gmail.com> | 2020-09-20 17:40:51 -0700 |
|---|---|---|
| committer | Tyson Nottingham <tgnottingham@gmail.com> | 2020-12-03 18:36:34 -0800 |
| commit | 75de8286c04af256762804ee96b08a68d2aba279 (patch) | |
| tree | 8f97b1971b229b38eddd739c3ca618b63eb661cd /compiler/rustc_codegen_llvm/src/llvm_util.rs | |
| parent | 0987b841987fb7ffc09848c185d671ff3bea7d35 (diff) | |
| download | rust-75de8286c04af256762804ee96b08a68d2aba279.tar.gz rust-75de8286c04af256762804ee96b08a68d2aba279.zip | |
rustc_span: add span_data_to_lines_and_cols to caching source map view
Gives a performance increase over calling byte_pos_to_line_and_col twice, partially because it decreases the function calling overhead, potentially because it doesn't populate the line cache with lines that turn out to belong to invalid spans, and likely because of some other incidental improvements made possible by having more context available.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/llvm_util.rs')
0 files changed, 0 insertions, 0 deletions
