Use as_nanos in bench.rs and base.rs
This commit is contained in:
parent
285fc7d704
commit
cebbd9fcd3
2 changed files with 2 additions and 6 deletions
|
@ -108,7 +108,7 @@ pub fn compile_codegen_unit(
|
|||
|
||||
// We assume that the cost to run LLVM on a CGU is proportional to
|
||||
// the time we needed for codegenning it.
|
||||
let cost = time_to_codegen.as_secs() * 1_000_000_000 + time_to_codegen.subsec_nanos() as u64;
|
||||
let cost = time_to_codegen.as_nanos() as u64;
|
||||
|
||||
fn module_codegen(tcx: TyCtxt<'_>, cgu_name: Symbol) -> ModuleCodegen<ModuleLlvm> {
|
||||
let cgu = tcx.codegen_unit(cgu_name);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue