Skip to content

Commit b6a7b5a

Browse files
committed
remove allocation from a self-profiling call in the LLVM backend
1 parent af22801 commit b6a7b5a

File tree

1 file changed

+3
-1
lines changed
  • compiler/rustc_codegen_llvm/src/back

1 file changed

+3
-1
lines changed

compiler/rustc_codegen_llvm/src/back/lto.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,9 @@ fn fat_lto(
313313
for (bc_decoded, name) in serialized_modules {
314314
let _timer = cgcx
315315
.prof
316-
.generic_activity_with_arg("LLVM_fat_lto_link_module", format!("{:?}", name));
316+
.generic_activity_with_arg_recorder("LLVM_fat_lto_link_module", |recorder| {
317+
recorder.record_arg(format!("{:?}", name))
318+
});
317319
info!("linking {:?}", name);
318320
let data = bc_decoded.data();
319321
linker.add(data).map_err(|()| {

0 commit comments

Comments
 (0)