rust/src/librustc_codegen_llvm
Jonas Schievink 0e23d3681e
Rollup merge of #68881 - eddyb:always-preserve-dbg-vars, r=nagisa
rustc_codegen_llvm: always set AlwaysPreserve on all debuginfo variables

Making this depend on the optimization level appears to have been a copy-paste mistake (other LLVM functions called in this module also take a `bool` argument, but there it means something unrelated).
Also see https://github.com/rust-lang/rust/pull/8855#discussion_r374392128.

I don't believe we have any reason to let LLVM omit user variables from DWARF, and we were already setting this to `true` when LLVM *could* optimize them away, so this PR should have no effect anyway.

r? @michaelwoerister or @nagisa cc @hanna-kruppe @nikomatsakis
2020-02-09 18:23:31 +01:00
..
back Change -Z time event naming scheme and make them generic activities 2020-01-09 07:06:40 +01:00
debuginfo Rollup merge of #68881 - eddyb:always-preserve-dbg-vars, r=nagisa 2020-02-09 18:23:31 +01:00
llvm rustc_codegen_ssa: remove unnecessary source_locations_enabled. 2020-02-08 18:27:49 +02:00
abi.rs Format the world 2019-12-22 17:42:47 -05:00
allocator.rs Format the world 2019-12-22 17:42:47 -05:00
asm.rs Remove rustc_hir reexports in rustc::hir. 2020-01-05 12:49:22 +01:00
attributes.rs Apply LLVM sanitize attributes to generated entry wrapper 2020-02-05 23:30:38 +01:00
base.rs Apply LLVM sanitize attributes to generated entry wrapper 2020-02-05 23:30:38 +01:00
build.rs Remove licenses 2018-12-25 21:08:33 -07:00
builder.rs rustc_codegen_ssa: split declare_local into create_dbg_var and dbg_var_addr. 2020-02-03 12:14:21 +02:00
callee.rs Add projection query for upstream drop-glue instances. 2020-01-23 16:56:59 +01:00
Cargo.toml Move builtin attribute logic to new rustc_attr crate. 2020-02-01 18:54:56 +01:00
common.rs rustc_codegen_ssa: split declare_local into create_dbg_var and dbg_var_addr. 2020-02-03 12:14:21 +02:00
consts.rs Auto merge of #67886 - Centril:rustc_hir_canon_imports, r=nagisa 2020-01-06 12:55:40 +00:00
context.rs Add support for Control Flow Guard on Windows. 2020-01-28 14:43:23 +00:00
declare.rs Selectively disable sanitizer instrumentation 2020-02-05 23:30:38 +01:00
intrinsic.rs Apply review feedback 2020-01-11 10:18:44 +00:00
lib.rs Auto merge of #68601 - 0dvictor:split, r=tmandry 2020-02-04 05:48:54 +00:00
llvm_util.rs Add support for enabling the LLVM time-trace feature 2020-02-01 14:19:17 -05:00
metadata.rs tidy: change msdn links to newer locations 2019-12-25 15:35:54 +00:00
mono_item.rs Auto merge of #67886 - Centril:rustc_hir_canon_imports, r=nagisa 2020-01-06 12:55:40 +00:00
README.md rustc-guide has moved 2018-11-26 15:03:13 -06:00
type_.rs Format the world 2019-12-22 17:42:47 -05:00
type_of.rs Format the world 2019-12-22 17:42:47 -05:00
va_arg.rs Format the world 2019-12-22 17:42:47 -05:00
value.rs Format the world 2019-12-22 17:42:47 -05:00

The codegen crate contains the code to convert from MIR into LLVM IR, and then from LLVM IR into machine code. In general it contains code that runs towards the end of the compilation process.

For more information about how codegen works, see the rustc guide.