remove allocation from a self-profiling call in the LLVM backend
This commit is contained in:
parent
af22801db0
commit
b6a7b5accd
1 changed files with 3 additions and 1 deletions
|
@ -313,7 +313,9 @@ fn fat_lto(
|
||||||
for (bc_decoded, name) in serialized_modules {
|
for (bc_decoded, name) in serialized_modules {
|
||||||
let _timer = cgcx
|
let _timer = cgcx
|
||||||
.prof
|
.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);
|
info!("linking {:?}", name);
|
||||||
let data = bc_decoded.data();
|
let data = bc_decoded.data();
|
||||||
linker.add(data).map_err(|()| {
|
linker.add(data).map_err(|()| {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue