File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed
compiler/rustc_codegen_llvm/src/coverageinfo Expand file tree Collapse file tree 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>(
349349 llvm:: set_linkage ( llglobal, llvm:: Linkage :: PrivateLinkage ) ;
350350 llvm:: set_section ( llglobal, & covmap_section_name) ;
351351 // LLVM's coverage mapping format specifies 8-byte alignment for items in this section.
352+ // <https://llvm.org/docs/CoverageMappingFormat.html>
352353 llvm:: set_alignment ( llglobal, Align :: EIGHT ) ;
353354 cx. add_used_global ( llglobal) ;
354355}
@@ -400,6 +401,7 @@ fn generate_covfun_record(
400401 llvm:: set_visibility ( llglobal, llvm:: Visibility :: Hidden ) ;
401402 llvm:: set_section ( llglobal, cx. covfun_section_name ( ) ) ;
402403 // LLVM's coverage mapping format specifies 8-byte alignment for items in this section.
404+ // <https://llvm.org/docs/CoverageMappingFormat.html>
403405 llvm:: set_alignment ( llglobal, Align :: EIGHT ) ;
404406 if cx. target_spec ( ) . supports_comdat ( ) {
405407 llvm:: set_comdat ( cx. llmod , llglobal, & func_record_var_name) ;
You can’t perform that action at this time.
0 commit comments