File tree 1 file changed +2
-0
lines changed
compiler/rustc_codegen_llvm/src/coverageinfo
1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -349,6 +349,7 @@ fn generate_covmap_record<'ll>(
349
349
llvm:: set_linkage ( llglobal, llvm:: Linkage :: PrivateLinkage ) ;
350
350
llvm:: set_section ( llglobal, & covmap_section_name) ;
351
351
// LLVM's coverage mapping format specifies 8-byte alignment for items in this section.
352
+ // <https://llvm.org/docs/CoverageMappingFormat.html>
352
353
llvm:: set_alignment ( llglobal, Align :: EIGHT ) ;
353
354
cx. add_used_global ( llglobal) ;
354
355
}
@@ -400,6 +401,7 @@ fn generate_covfun_record(
400
401
llvm:: set_visibility ( llglobal, llvm:: Visibility :: Hidden ) ;
401
402
llvm:: set_section ( llglobal, cx. covfun_section_name ( ) ) ;
402
403
// LLVM's coverage mapping format specifies 8-byte alignment for items in this section.
404
+ // <https://llvm.org/docs/CoverageMappingFormat.html>
403
405
llvm:: set_alignment ( llglobal, Align :: EIGHT ) ;
404
406
if cx. target_spec ( ) . supports_comdat ( ) {
405
407
llvm:: set_comdat ( cx. llmod , llglobal, & func_record_var_name) ;
You can’t perform that action at this time.
0 commit comments