From 0d653a5866720570b96260ab69b732d241ec346e Mon Sep 17 00:00:00 2001 From: Zalathar Date: Sat, 26 Oct 2024 17:37:04 +1100 Subject: [PATCH] coverage: Add links to LLVM docs for the coverage mapping format --- compiler/rustc_codegen_llvm/src/coverageinfo/mapgen.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/compiler/rustc_codegen_llvm/src/coverageinfo/mapgen.rs b/compiler/rustc_codegen_llvm/src/coverageinfo/mapgen.rs index 5b39d078e0d..8edd788ee36 100644 --- a/compiler/rustc_codegen_llvm/src/coverageinfo/mapgen.rs +++ b/compiler/rustc_codegen_llvm/src/coverageinfo/mapgen.rs @@ -349,6 +349,7 @@ fn generate_covmap_record<'ll>( llvm::set_linkage(llglobal, llvm::Linkage::PrivateLinkage); llvm::set_section(llglobal, &covmap_section_name); // LLVM's coverage mapping format specifies 8-byte alignment for items in this section. + // llvm::set_alignment(llglobal, Align::EIGHT); cx.add_used_global(llglobal); } @@ -400,6 +401,7 @@ fn generate_covfun_record( llvm::set_visibility(llglobal, llvm::Visibility::Hidden); llvm::set_section(llglobal, cx.covfun_section_name()); // LLVM's coverage mapping format specifies 8-byte alignment for items in this section. + // llvm::set_alignment(llglobal, Align::EIGHT); if cx.target_spec().supports_comdat() { llvm::set_comdat(cx.llmod, llglobal, &func_record_var_name);