diff options
| author | Julia Tatz <tatz.j@northeastern.edu> | 2021-09-03 13:00:39 -0400 |
|---|---|---|
| committer | Jynn Nelson <jyn.nelson@redjack.com> | 2023-03-31 07:28:39 -0400 |
| commit | 7b453b9f5a3b921291fd723067d48fee28e7475b (patch) | |
| tree | 5e13382057841d009957ecde9bc688b117669b79 /compiler/rustc_codegen_llvm/src | |
| parent | 0504a333837e10f19454901fd060c0f99bf8f5b7 (diff) | |
| download | rust-7b453b9f5a3b921291fd723067d48fee28e7475b.tar.gz rust-7b453b9f5a3b921291fd723067d48fee28e7475b.zip | |
More in-depth documentation for the new debuginfo options
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
| -rw-r--r-- | compiler/rustc_codegen_llvm/src/llvm/ffi.rs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/compiler/rustc_codegen_llvm/src/llvm/ffi.rs b/compiler/rustc_codegen_llvm/src/llvm/ffi.rs index aff352abab4..556c6602ff4 100644 --- a/compiler/rustc_codegen_llvm/src/llvm/ffi.rs +++ b/compiler/rustc_codegen_llvm/src/llvm/ffi.rs @@ -951,6 +951,16 @@ pub mod debuginfo { impl DebugEmissionKind { pub fn from_generic(kind: rustc_session::config::DebugInfo) -> Self { + // We should be setting LLVM's emission kind to `LineTablesOnly` if + // we are compiling with "limited" debuginfo. However, some of the + // existing tools relied on slightly more debuginfo being generated than + // would be the case with `LineTablesOnly`, and we did not want to break + // these tools in a "drive-by fix", without a good idea or plan about + // what limited debuginfo should exactly look like. So for now we are + // instead adding a new debuginfo option "line-tables-only" so as to + // not break anything and to allow users to have 'limited' debug info. + // + // See https://github.com/rust-lang/rust/issues/60020 for details. use rustc_session::config::DebugInfo; match kind { DebugInfo::None => DebugEmissionKind::NoDebug, |
