simplify a self-profiling activity call in the cg_gcc backend
This commit is contained in:
parent
249d3e9dd9
commit
c59b01f241
1 changed files with 1 additions and 1 deletions
|
@ -11,7 +11,7 @@ use rustc_target::spec::SplitDebuginfo;
|
||||||
use crate::{GccCodegenBackend, GccContext};
|
use crate::{GccCodegenBackend, GccContext};
|
||||||
|
|
||||||
pub(crate) unsafe fn codegen(cgcx: &CodegenContext<GccCodegenBackend>, _diag_handler: &Handler, module: ModuleCodegen<GccContext>, config: &ModuleConfig) -> Result<CompiledModule, FatalError> {
|
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;
|
let context = &module.module_llvm.context;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue