diff options
| author | Wesley Wiser <wwiser@gmail.com> | 2019-04-04 19:41:49 -0400 |
|---|---|---|
| committer | Wesley Wiser <wwiser@gmail.com> | 2019-04-12 20:27:29 -0400 |
| commit | 56e434d84d8fc7f9a67c19294206c733f25b890b (patch) | |
| tree | a0c6159f3a310823e1a2a1eb6d208b2dcc7d5706 /src/librustc_codegen_llvm/lib.rs | |
| parent | 99da733f7f38ce8fe68453e859b7ac96bf7caa0f (diff) | |
| download | rust-56e434d84d8fc7f9a67c19294206c733f25b890b.tar.gz rust-56e434d84d8fc7f9a67c19294206c733f25b890b.zip | |
Use measureme in self-profiler
Related to #58372 Related to #58967
Diffstat (limited to 'src/librustc_codegen_llvm/lib.rs')
| -rw-r--r-- | src/librustc_codegen_llvm/lib.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/librustc_codegen_llvm/lib.rs b/src/librustc_codegen_llvm/lib.rs index 0aae6b46e3d..da91217e95e 100644 --- a/src/librustc_codegen_llvm/lib.rs +++ b/src/librustc_codegen_llvm/lib.rs @@ -65,7 +65,6 @@ use rustc::middle::cstore::{EncodedMetadata, MetadataLoader}; use rustc::session::Session; use rustc::session::config::{OutputFilenames, OutputType, PrintRequest, OptLevel}; use rustc::ty::{self, TyCtxt}; -use rustc::util::profiling::ProfileCategory; use rustc::util::common::ErrorReported; use rustc_mir::monomorphize; use rustc_codegen_ssa::ModuleCodegen; @@ -330,12 +329,12 @@ impl CodegenBackend for LlvmCodegenBackend { // Run the linker on any artifacts that resulted from the LLVM run. // This should produce either a finished executable or library. - sess.profiler(|p| p.start_activity(ProfileCategory::Linking, "link_crate")); + sess.profiler(|p| p.start_activity("link_crate")); time(sess, "linking", || { back::link::link_binary(sess, &codegen_results, outputs, &codegen_results.crate_name.as_str()); }); - sess.profiler(|p| p.end_activity(ProfileCategory::Linking, "link_crate")); + sess.profiler(|p| p.end_activity("link_crate")); // Now that we won't touch anything in the incremental compilation directory // any more, we can finalize it (which involves renaming it) |
