mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-02 15:32:06 +00:00
remove allocation from a self-profiling call in the LLVM backend
This commit is contained in:
parent
af22801db0
commit
b6a7b5accd
@ -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(|()| {
|
||||
|
Loading…
Reference in New Issue
Block a user