about summary refs log tree commit diff
path: root/src/debuginfo
diff options
context:
space:
mode:
authorAndy Wang <cbeuw.andy@gmail.com>2021-04-19 23:27:02 +0100
committerAndy Wang <cbeuw.andy@gmail.com>2021-05-05 15:31:28 +0100
commite162eeb1f0492822cc810decee23d6d9b9c084f0 (patch)
treec18adc593361a5f8ae5bff9cebb255b9724e753f /src/debuginfo
parent5de83e7bd1929d6e18c19dc4430bdcececc905c2 (diff)
downloadrust-e162eeb1f0492822cc810decee23d6d9b9c084f0.tar.gz
rust-e162eeb1f0492822cc810decee23d6d9b9c084f0.zip
Use local and remapped paths where appropriate
Diffstat (limited to 'src/debuginfo')
-rw-r--r--src/debuginfo/line_info.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/debuginfo/line_info.rs b/src/debuginfo/line_info.rs
index b3f700bc467..9eb06770630 100644
--- a/src/debuginfo/line_info.rs
+++ b/src/debuginfo/line_info.rs
@@ -87,7 +87,7 @@ fn line_program_add_file(
         filename => {
             let dir_id = line_program.default_directory();
             let dummy_file_name = LineString::new(
-                filename.to_string().into_bytes(),
+                filename.prefer_remapped().to_string().into_bytes(),
                 line_program.encoding(),
                 line_strings,
             );