Simplify trim-paths feature by merging all debuginfo options together

This commit is contained in:
Urgau
2024-03-19 13:51:22 +01:00
parent c5e7f45b62
commit 777c6b46cc
8 changed files with 17 additions and 70 deletions

View File

@@ -875,7 +875,7 @@ pub fn build_compile_unit_di_node<'ll, 'tcx>(
)
// We get a path relative to the working directory from split_dwarf_path
.map(|f| {
if tcx.sess.should_prefer_remapped_for_split_debuginfo_paths() {
if tcx.sess.should_prefer_remapped_for_codegen() {
tcx.sess.source_map().path_mapping().map_prefix(f).0
} else {
f.into()