rust/compiler/rustc_codegen_llvm/src
Matthias Krüger dea325e583
Rollup merge of #128627 - khuey:DUMMY_SP-line-no, r=nnethercote
Special case DUMMY_SP to emit line 0/column 0 locations on DWARF platforms.

Line 0 has a special meaning in DWARF. From the version 5 spec:

    The compiler may emit the value 0 in cases
    where an instruction cannot be attributed to any
    source line.

DUMMY_SP spans cannot be attributed to any line. However, because rustc internally stores line numbers starting at zero, lookup_debug_loc() adjusts every line number by one. Special casing DUMMY_SP to actually emit line 0 ensures rustc communicates to the debugger that there's no meaningful source code for this instruction, rather than telling the debugger to jump to line 1 randomly.
2024-08-21 18:15:01 +02:00
..
back Always use ar_archive_writer for import libs 2024-08-17 19:10:46 +00:00
coverageinfo Reformat use declarations. 2024-07-29 08:26:52 +10:00
debuginfo Rollup merge of #128627 - khuey:DUMMY_SP-line-no, r=nnethercote 2024-08-21 18:15:01 +02:00
llvm Add range attribute to scalar function results and arguments 2024-08-11 19:40:44 +02:00
abi.rs Auto merge of #128371 - andjo403:rangeAttribute, r=nikic 2024-08-12 10:20:00 +00:00
allocator.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
asm.rs Use assert_matches around the compiler 2024-08-11 12:25:39 -04:00
attributes.rs Rollup merge of #128679 - RalfJung:codegen-fn-attrs, r=nikic 2024-08-07 20:28:18 +02:00
base.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
builder.rs Rollup merge of #128149 - RalfJung:nontemporal_store, r=jieyouxu,Amanieu,Jubilee 2024-08-12 17:09:14 +02:00
callee.rs codegen: better centralize function attribute computation 2024-08-07 19:49:48 +02:00
common.rs Rollup merge of #128537 - Jamesbarford:118980-const-vector, r=RalfJung,nikic 2024-08-12 17:09:15 +02:00
consts.rs Move is_mingw_gnu_toolchain and i686_decorated_name to cg_ssa 2024-07-30 10:30:09 +00:00
context.rs Fix is_val_statically_known for floats 2024-08-17 02:14:23 +01:00
declare.rs codegen: better centralize function attribute computation 2024-08-07 19:49:48 +02:00
errors.rs Always use ar_archive_writer for import libs 2024-08-17 19:10:46 +00:00
intrinsic.rs Fix is_val_statically_known for floats 2024-08-17 02:14:23 +01:00
lib.rs Use assert_matches around the compiler 2024-08-11 12:25:39 -04:00
llvm_util.rs Disallow enabling features without their implied features 2024-08-07 00:45:00 -04:00
mono_item.rs codegen: better centralize function attribute computation 2024-08-07 19:49:48 +02:00
type_.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
type_of.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
va_arg.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
value.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00