Skip to content

Commit 0d653a5

Browse files
committed
coverage: Add links to LLVM docs for the coverage mapping format
1 parent 0356908 commit 0d653a5

File tree

1 file changed

+2
-0
lines changed
  • compiler/rustc_codegen_llvm/src/coverageinfo

1 file changed

+2
-0
lines changed

compiler/rustc_codegen_llvm/src/coverageinfo/mapgen.rs

+2
Original file line numberDiff line numberDiff 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);

0 commit comments

Comments
 (0)