about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm
diff options
context:
space:
mode:
authorRémy Rakic <remy.rakic+github@gmail.com>2022-04-01 21:10:44 +0200
committerRémy Rakic <remy.rakic+github@gmail.com>2022-04-07 15:47:20 +0200
commitb6a7b5accd03da6655e8150bcbd36defe1e43081 (patch)
treeb7eaa5f5b7262bdebc61c967764e9238603f2939 /compiler/rustc_codegen_llvm
parentaf22801db08b9cd3e7dac9531bdab8ba8ad91d6e (diff)
downloadrust-b6a7b5accd03da6655e8150bcbd36defe1e43081.tar.gz
rust-b6a7b5accd03da6655e8150bcbd36defe1e43081.zip
remove allocation from a self-profiling call in the LLVM backend
Diffstat (limited to 'compiler/rustc_codegen_llvm')
-rw-r--r--compiler/rustc_codegen_llvm/src/back/lto.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/compiler/rustc_codegen_llvm/src/back/lto.rs b/compiler/rustc_codegen_llvm/src/back/lto.rs
index 0f5b1c08ec2..7a747a9cdee 100644
--- a/compiler/rustc_codegen_llvm/src/back/lto.rs
+++ b/compiler/rustc_codegen_llvm/src/back/lto.rs
@@ -313,7 +313,9 @@ fn fat_lto(
         for (bc_decoded, name) in serialized_modules {
             let _timer = cgcx
                 .prof
-                .generic_activity_with_arg("LLVM_fat_lto_link_module", format!("{:?}", name));
+                .generic_activity_with_arg_recorder("LLVM_fat_lto_link_module", |recorder| {
+                    recorder.record_arg(format!("{:?}", name))
+                });
             info!("linking {:?}", name);
             let data = bc_decoded.data();
             linker.add(data).map_err(|()| {