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 | af22801db08b9cd3e7dac9531bdab8ba8ad91d6e (patch) | |
| tree | 500dcdd7fa507f4bd7f31a745085bd4f3881c4ea /compiler/rustc_codegen_gcc/src | |
| parent | 3a8006714be2524b650f046f028836578ddc7e51 (diff) | |
| download | rust-af22801db08b9cd3e7dac9531bdab8ba8ad91d6e.tar.gz rust-af22801db08b9cd3e7dac9531bdab8ba8ad91d6e.zip | |
simplify a self-profiling activity call in the cg_gcc backend
Diffstat (limited to 'compiler/rustc_codegen_gcc/src')
| -rw-r--r-- | compiler/rustc_codegen_gcc/src/back/write.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_codegen_gcc/src/back/write.rs b/compiler/rustc_codegen_gcc/src/back/write.rs index b503bd020f6..efcf18d31eb 100644 --- a/compiler/rustc_codegen_gcc/src/back/write.rs +++ b/compiler/rustc_codegen_gcc/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; |
