@@ -708,15 +708,15 @@ pub(crate) unsafe fn codegen(
708
708
// asm from LLVM and use `gcc` to create the object file.
709
709
710
710
let bc_out = cgcx. output_filenames . temp_path ( OutputType :: Bitcode , module_name) ;
711
- let bc_index_out =
711
+ let bc_summary_out =
712
712
cgcx. output_filenames . temp_path ( OutputType :: ThinLinkBitcode , module_name) ;
713
713
let obj_out = cgcx. output_filenames . temp_path ( OutputType :: Object , module_name) ;
714
714
715
715
if config. bitcode_needed ( ) {
716
716
let _timer = cgcx
717
717
. prof
718
718
. 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 ) ;
720
720
let data = thin. data ( ) ;
721
721
722
722
if let Some ( bitcode_filename) = bc_out. file_name ( ) {
@@ -727,20 +727,20 @@ pub(crate) unsafe fn codegen(
727
727
) ;
728
728
}
729
729
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 ( ) ;
732
732
cgcx. prof . artifact_size (
733
733
"llvm_bitcode_summary" ,
734
734
thin_link_bitcode_filename. to_string_lossy ( ) ,
735
- index_data . len ( ) as u64 ,
735
+ summary_data . len ( ) as u64 ,
736
736
) ;
737
737
738
738
let _timer = cgcx. prof . generic_activity_with_arg (
739
- "LLVM_module_codegen_emit_bitcode_index " ,
739
+ "LLVM_module_codegen_emit_bitcode_summary " ,
740
740
& * module. name ,
741
741
) ;
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 } ) ;
744
744
}
745
745
}
746
746
0 commit comments