@@ -637,9 +637,9 @@ fn escape_stdout_stderr_string(s: &[u8]) -> String {
637
637
638
638
const LLVM_DWP_EXECUTABLE : & ' static str = "rust-llvm-dwp" ;
639
639
640
- /// Invoke `llvm-dwp` (shipped alongside rustc) to link `dwo` files from Split DWARF into a `dwp`
640
+ /// Invoke `llvm-dwp` (shipped alongside rustc) to link debuginfo in object files into a `dwp`
641
641
/// file.
642
- fn link_dwarf_object < ' a , I > ( sess : & ' a Session , executable_out_filename : & Path , dwo_files : I )
642
+ fn link_dwarf_object < ' a , I > ( sess : & ' a Session , executable_out_filename : & Path , object_files : I )
643
643
where
644
644
I : IntoIterator < Item : AsRef < OsStr > > ,
645
645
{
@@ -649,7 +649,7 @@ where
649
649
let mut cmd = Command :: new ( LLVM_DWP_EXECUTABLE ) ;
650
650
cmd. arg ( "-o" ) ;
651
651
cmd. arg ( & dwp_out_filename) ;
652
- cmd. args ( dwo_files ) ;
652
+ cmd. args ( object_files ) ;
653
653
654
654
let mut new_path = sess. get_tools_search_paths ( false ) ;
655
655
if let Some ( path) = env:: var_os ( "PATH" ) {
@@ -1033,13 +1033,13 @@ fn link_natively<'a, B: ArchiveBuilder<'a>>(
1033
1033
SplitDebuginfo :: Packed if sess. target . is_like_msvc => { }
1034
1034
1035
1035
// ... and otherwise we're processing a `*.dwp` packed dwarf file.
1036
- // We cannot rely on the .dwo paths in the exectuable because they may have been
1036
+ // We cannot rely on the .o paths in the exectuable because they may have been
1037
1037
// remapped by --remap-path-prefix and therefore invalid. So we need to provide
1038
- // the .dwo paths explicitly
1038
+ // the .o paths explicitly
1039
1039
SplitDebuginfo :: Packed => link_dwarf_object (
1040
1040
sess,
1041
1041
& out_filename,
1042
- codegen_results. modules . iter ( ) . filter_map ( |m| m. dwarf_object . as_ref ( ) ) ,
1042
+ codegen_results. modules . iter ( ) . filter_map ( |m| m. object . as_ref ( ) ) ,
1043
1043
) ,
1044
1044
}
1045
1045
0 commit comments