]> git.lizzy.rs Git - rust.git/commit
Emit 1-based column numbers in debuginfo
authorTomasz Miąsko <tomasz.miasko@gmail.com>
Fri, 21 Feb 2020 00:00:00 +0000 (00:00 +0000)
committerTomasz Miąsko <tomasz.miasko@gmail.com>
Wed, 26 Feb 2020 20:45:34 +0000 (21:45 +0100)
commite1a54725081227a3866669c167bee4c0559f5362
tree6a6bf48337b8468ba6346bc6ac23c68ea5df9dd1
parentabc3073c92df034636a823c5382ece2186d22b9e
Emit 1-based column numbers in debuginfo

The debuginfo column numbers are 1-based. The value 0 indicates that no
column has been specified. Translate 0-based column numbers to 1-based
when emitting debug information.
src/librustc_codegen_llvm/debuginfo/create_scope_map.rs
src/librustc_codegen_llvm/debuginfo/source_loc.rs
src/test/codegen/debug-column.rs [new file with mode: 0644]