@@ -637,9 +637,9 @@ fn escape_stdout_stderr_string(s: &[u8]) -> String {
637637
638638const LLVM_DWP_EXECUTABLE : & ' static str = "rust-llvm-dwp" ;
639639
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`
641641/// 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 )
643643where
644644 I : IntoIterator < Item : AsRef < OsStr > > ,
645645{
@@ -649,7 +649,7 @@ where
649649 let mut cmd = Command :: new ( LLVM_DWP_EXECUTABLE ) ;
650650 cmd. arg ( "-o" ) ;
651651 cmd. arg ( & dwp_out_filename) ;
652- cmd. args ( dwo_files ) ;
652+ cmd. args ( object_files ) ;
653653
654654 let mut new_path = sess. get_tools_search_paths ( false ) ;
655655 if let Some ( path) = env:: var_os ( "PATH" ) {
@@ -1033,13 +1033,13 @@ fn link_natively<'a, B: ArchiveBuilder<'a>>(
10331033 SplitDebuginfo :: Packed if sess. target . is_like_msvc => { }
10341034
10351035 // ... 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
10371037 // remapped by --remap-path-prefix and therefore invalid. So we need to provide
1038- // the .dwo paths explicitly
1038+ // the .o paths explicitly
10391039 SplitDebuginfo :: Packed => link_dwarf_object (
10401040 sess,
10411041 & 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 ( ) ) ,
10431043 ) ,
10441044 }
10451045
0 commit comments