about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src
diff options
context:
space:
mode:
authorTyson Nottingham <tgnottingham@gmail.com>2020-09-20 17:40:51 -0700
committerTyson Nottingham <tgnottingham@gmail.com>2020-12-03 18:36:34 -0800
commit75de8286c04af256762804ee96b08a68d2aba279 (patch)
tree8f97b1971b229b38eddd739c3ca618b63eb661cd /compiler/rustc_codegen_llvm/src
parent0987b841987fb7ffc09848c185d671ff3bea7d35 (diff)
downloadrust-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')
0 files changed, 0 insertions, 0 deletions