diff options
| author | David Wood <david@davidtw.co> | 2020-09-23 17:33:54 +0100 |
|---|---|---|
| committer | David Wood <david@davidtw.co> | 2020-12-16 10:33:47 +0000 |
| commit | e3fdae9d81052cf521298d19f8bb32ba0332b589 (patch) | |
| tree | 6db6a7c40140ce62404e34abc104ea2da417768e /compiler/rustc_codegen_llvm/src/debuginfo | |
| parent | 241160de72b5b55187ca54243e2a6e82e336d07c (diff) | |
| download | rust-e3fdae9d81052cf521298d19f8bb32ba0332b589.tar.gz rust-e3fdae9d81052cf521298d19f8bb32ba0332b589.zip | |
cg_llvm: implement split dwarf support
This commit implements Split DWARF support, wiring up the flag (added in earlier commits) to the modified FFI wrapper (also from earlier commits). Signed-off-by: David Wood <david@davidtw.co>
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/debuginfo')
| -rw-r--r-- | compiler/rustc_codegen_llvm/src/debuginfo/metadata.rs | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/compiler/rustc_codegen_llvm/src/debuginfo/metadata.rs b/compiler/rustc_codegen_llvm/src/debuginfo/metadata.rs index 41c8a5e5705..a9eff59b6af 100644 --- a/compiler/rustc_codegen_llvm/src/debuginfo/metadata.rs +++ b/compiler/rustc_codegen_llvm/src/debuginfo/metadata.rs @@ -995,7 +995,11 @@ pub fn compile_unit_metadata( let name_in_debuginfo = name_in_debuginfo.to_string_lossy(); let work_dir = tcx.sess.working_dir.0.to_string_lossy(); let flags = "\0"; - let split_name = ""; + let split_name = tcx + .output_filenames(LOCAL_CRATE) + .split_dwarf_file(tcx.sess.opts.debugging_opts.split_dwarf, Some(codegen_unit_name)) + .unwrap_or_default(); + let split_name = split_name.to_str().unwrap(); // FIXME(#60020): // @@ -1040,7 +1044,7 @@ pub fn compile_unit_metadata( split_name.len(), kind, 0, - true, + tcx.sess.opts.debugging_opts.split_dwarf_inlining, ); if tcx.sess.opts.debugging_opts.profile { |
