diff options
| author | bors <bors@rust-lang.org> | 2019-10-02 06:08:24 +0000 | 
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2019-10-02 06:08:24 +0000 | 
| commit | f2023ac599c38a59f86552089e6791c5a73412d3 (patch) | |
| tree | e2ebd2336ca270269b57cc3660640339a182c0c2 /src/librustc_codegen_llvm/lib.rs | |
| parent | ff191b54cc8a95e3bfc7ae5f8f9984f934758165 (diff) | |
| parent | 0878ca51f08d20499e04feda142c5e0ab44a628b (diff) | |
| download | rust-f2023ac599c38a59f86552089e6791c5a73412d3.tar.gz rust-f2023ac599c38a59f86552089e6791c5a73412d3.zip | |
Auto merge of #64981 - tmandry:rollup-slfkhay, r=tmandry
Rollup of 11 pull requests Successful merges: - #64649 (Avoid ICE on return outside of fn with literal array) - #64722 (Make all alt builders produce parallel-enabled compilers) - #64801 (Avoid `chain()` in `find_constraint_paths_between_regions()`.) - #64805 (Still more `ObligationForest` improvements.) - #64840 (SelfProfiler API refactoring and part one of event review) - #64885 (use try_fold instead of try_for_each to reduce compile time) - #64942 (Fix clippy warnings) - #64952 (Update cargo.) - #64974 (Fix zebra-striping in generic dataflow visualization) - #64978 (Fully clear `HandlerInner` in `Handler::reset_err_count`) - #64979 (Update books) Failed merges: - #64959 (syntax: improve parameter without type suggestions) r? @ghost
Diffstat (limited to 'src/librustc_codegen_llvm/lib.rs')
| -rw-r--r-- | src/librustc_codegen_llvm/lib.rs | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/src/librustc_codegen_llvm/lib.rs b/src/librustc_codegen_llvm/lib.rs index 309a17a01e3..87eab484faf 100644 --- a/src/librustc_codegen_llvm/lib.rs +++ b/src/librustc_codegen_llvm/lib.rs @@ -324,8 +324,9 @@ 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("link_crate")); time(sess, "linking", || { + let _prof_timer = sess.prof.generic_activity("link_crate"); + use rustc_codegen_ssa::back::link::link_binary; use crate::back::archive::LlvmArchiveBuilder; @@ -338,7 +339,6 @@ impl CodegenBackend for LlvmCodegenBackend { target_cpu, ); }); - 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) | 
