@@ -708,15 +708,15 @@ pub(crate) unsafe fn codegen(
708708 // asm from LLVM and use `gcc` to create the object file.
709709
710710 let bc_out = cgcx. output_filenames . temp_path ( OutputType :: Bitcode , module_name) ;
711- let bc_index_out =
711+ let bc_summary_out =
712712 cgcx. output_filenames . temp_path ( OutputType :: ThinLinkBitcode , module_name) ;
713713 let obj_out = cgcx. output_filenames . temp_path ( OutputType :: Object , module_name) ;
714714
715715 if config. bitcode_needed ( ) {
716716 let _timer = cgcx
717717 . prof
718718 . generic_activity_with_arg ( "LLVM_module_codegen_make_bitcode" , & * module. name ) ;
719- let thin = ThinBuffer :: new ( llmod, config. emit_thin_lto , config. emit_thin_lto_index ) ;
719+ let thin = ThinBuffer :: new ( llmod, config. emit_thin_lto , config. emit_thin_lto_summary ) ;
720720 let data = thin. data ( ) ;
721721
722722 if let Some ( bitcode_filename) = bc_out. file_name ( ) {
@@ -727,20 +727,20 @@ pub(crate) unsafe fn codegen(
727727 ) ;
728728 }
729729
730- if config. emit_thin_lto_index && let Some ( thin_link_bitcode_filename) = bc_index_out . file_name ( ) {
731- let index_data = thin. thin_link_data ( ) ;
730+ if config. emit_thin_lto_summary && let Some ( thin_link_bitcode_filename) = bc_summary_out . file_name ( ) {
731+ let summary_data = thin. thin_link_data ( ) ;
732732 cgcx. prof . artifact_size (
733733 "llvm_bitcode_summary" ,
734734 thin_link_bitcode_filename. to_string_lossy ( ) ,
735- index_data . len ( ) as u64 ,
735+ summary_data . len ( ) as u64 ,
736736 ) ;
737737
738738 let _timer = cgcx. prof . generic_activity_with_arg (
739- "LLVM_module_codegen_emit_bitcode_index " ,
739+ "LLVM_module_codegen_emit_bitcode_summary " ,
740740 & * module. name ,
741741 ) ;
742- if let Err ( err) = fs:: write ( & bc_index_out , index_data ) {
743- dcx. emit_err ( WriteBytecode { path : & bc_index_out , err } ) ;
742+ if let Err ( err) = fs:: write ( & bc_summary_out , summary_data ) {
743+ dcx. emit_err ( WriteBytecode { path : & bc_summary_out , err } ) ;
744744 }
745745 }
746746
0 commit comments