diff options
| author | Rémy Rakic <remy.rakic+github@gmail.com> | 2022-04-01 21:02:14 +0200 |
|---|---|---|
| committer | Rémy Rakic <remy.rakic+github@gmail.com> | 2022-04-07 15:47:20 +0200 |
| commit | c59b01f24189de0e988c4ead5ec3260ff05d484d (patch) | |
| tree | b4d157bed5d2d6b9ca4dfa5bc37dcfca0393a559 | |
| parent | 249d3e9dd943e68d80f5a0d779aa7ab75dd536ef (diff) | |
| download | rust-c59b01f24189de0e988c4ead5ec3260ff05d484d.tar.gz rust-c59b01f24189de0e988c4ead5ec3260ff05d484d.zip | |
simplify a self-profiling activity call in the cg_gcc backend
| -rw-r--r-- | src/back/write.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/back/write.rs b/src/back/write.rs index b503bd020f6..efcf18d31eb 100644 --- a/src/back/write.rs +++ b/src/back/write.rs @@ -11,7 +11,7 @@ use rustc_target::spec::SplitDebuginfo; use crate::{GccCodegenBackend, GccContext}; pub(crate) unsafe fn codegen(cgcx: &CodegenContext<GccCodegenBackend>, _diag_handler: &Handler, module: ModuleCodegen<GccContext>, config: &ModuleConfig) -> Result<CompiledModule, FatalError> { - let _timer = cgcx.prof.generic_activity_with_arg("LLVM_module_codegen", &module.name[..]); + let _timer = cgcx.prof.generic_activity_with_arg("LLVM_module_codegen", &*module.name); { let context = &module.module_llvm.context; |
