Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit debf88a

Browse files
author
The Miri Cronjob Bot
committedMay 24, 2024
Merge from rustc
2 parents 9ce95c3 + e2ef4e1 commit debf88a

File tree

381 files changed

+2830
-1407
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

381 files changed

+2830
-1407
lines changed
 

‎compiler/rustc_codegen_llvm/src/lib.rs

+5-5
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,6 @@
1515
#![feature(let_chains)]
1616
#![feature(impl_trait_in_assoc_type)]
1717

18-
#[macro_use]
19-
extern crate tracing;
20-
2118
use back::owned_target_machine::OwnedTargetMachine;
2219
use back::write::{create_informational_target_machine, create_target_machine};
2320

@@ -240,8 +237,11 @@ impl WriteBackendMethods for LlvmCodegenBackend {
240237
) -> Result<CompiledModule, FatalError> {
241238
back::write::codegen(cgcx, dcx, module, config)
242239
}
243-
fn prepare_thin(module: ModuleCodegen<Self::Module>) -> (String, Self::ThinBuffer) {
244-
back::lto::prepare_thin(module)
240+
fn prepare_thin(
241+
module: ModuleCodegen<Self::Module>,
242+
emit_summary: bool,
243+
) -> (String, Self::ThinBuffer) {
244+
back::lto::prepare_thin(module, emit_summary)
245245
}
246246
fn serialize_module(module: ModuleCodegen<Self::Module>) -> (String, Self::ModuleBuffer) {
247247
(module.name, back::lto::ModuleBuffer::new(module.module_llvm.llmod()))

‎compiler/rustc_codegen_llvm/src/llvm/ffi.rs

+7-1
Original file line numberDiff line numberDiff line change
@@ -2350,10 +2350,16 @@ extern "C" {
23502350
#[allow(improper_ctypes)]
23512351
pub fn LLVMRustModuleInstructionStats(M: &Module, Str: &RustString);
23522352

2353-
pub fn LLVMRustThinLTOBufferCreate(M: &Module, is_thin: bool) -> &'static mut ThinLTOBuffer;
2353+
pub fn LLVMRustThinLTOBufferCreate(
2354+
M: &Module,
2355+
is_thin: bool,
2356+
emit_summary: bool,
2357+
) -> &'static mut ThinLTOBuffer;
23542358
pub fn LLVMRustThinLTOBufferFree(M: &'static mut ThinLTOBuffer);
23552359
pub fn LLVMRustThinLTOBufferPtr(M: &ThinLTOBuffer) -> *const c_char;
23562360
pub fn LLVMRustThinLTOBufferLen(M: &ThinLTOBuffer) -> size_t;
2361+
pub fn LLVMRustThinLTOBufferThinLinkDataPtr(M: &ThinLTOBuffer) -> *const c_char;
2362+
pub fn LLVMRustThinLTOBufferThinLinkDataLen(M: &ThinLTOBuffer) -> size_t;
23572363
pub fn LLVMRustCreateThinLTOData(
23582364
Modules: *const ThinLTOModule,
23592365
NumModules: c_uint,

‎compiler/rustc_codegen_llvm/src/mono_item.rs

+1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ use rustc_middle::ty::layout::{FnAbiOf, LayoutOf};
1313
use rustc_middle::ty::{self, Instance, TypeVisitableExt};
1414
use rustc_session::config::CrateType;
1515
use rustc_target::spec::RelocModel;
16+
use tracing::debug;
1617

1718
impl<'tcx> PreDefineMethods<'tcx> for CodegenCx<'_, 'tcx> {
1819
fn predefine_static(
There was a problem loading the remainder of the diff.

0 commit comments

Comments
 (0)
Failed to load comments.