diff options
| author | Rémy Rakic <remy.rakic+github@gmail.com> | 2022-04-01 21:10:44 +0200 |
|---|---|---|
| committer | Rémy Rakic <remy.rakic+github@gmail.com> | 2022-04-07 15:47:20 +0200 |
| commit | b6a7b5accd03da6655e8150bcbd36defe1e43081 (patch) | |
| tree | b7eaa5f5b7262bdebc61c967764e9238603f2939 /compiler/rustc_codegen_llvm | |
| parent | af22801db08b9cd3e7dac9531bdab8ba8ad91d6e (diff) | |
| download | rust-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.rs | 4 |
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(|()| { |
