diff options
| author | Mazdak Farrokhzad <twingoow@gmail.com> | 2019-05-29 08:16:06 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-05-29 08:16:06 +0200 |
| commit | 907f4fd4aec93addd2e00f6c1d8f4b00157e920f (patch) | |
| tree | d5f598d83a91b16339568e1100f0d3aaa131c76c /src/librustc_codegen_ssa/traits | |
| parent | 3013c0b698d7e294333be280e7051f96f7da2f41 (diff) | |
| parent | 7fa97c08508057b29142211fc45b3e282f194a7b (diff) | |
| download | rust-907f4fd4aec93addd2e00f6c1d8f4b00157e920f.tar.gz rust-907f4fd4aec93addd2e00f6c1d8f4b00157e920f.zip | |
Rollup merge of #61297 - eddyb:forsaken-stats, r=nagisa
Remove LLVM instruction stats and other (obsolete) codegen stats. Both `-Z count_llvm_insns` and `-Z codegen-stats` are removed, as (AFAIK) they have been of little use in the last few years, especially after the transition to MIR->LLVM codegen. Other than for the LLVM instruction counts, `-Z codegen-stats` has long been obsoleted anyway. r? @nagisa cc @rust-lang/compiler
Diffstat (limited to 'src/librustc_codegen_ssa/traits')
| -rw-r--r-- | src/librustc_codegen_ssa/traits/backend.rs | 3 | ||||
| -rw-r--r-- | src/librustc_codegen_ssa/traits/misc.rs | 3 |
2 files changed, 1 insertions, 5 deletions
diff --git a/src/librustc_codegen_ssa/traits/backend.rs b/src/librustc_codegen_ssa/traits/backend.rs index 530eba516a6..0466b47cf14 100644 --- a/src/librustc_codegen_ssa/traits/backend.rs +++ b/src/librustc_codegen_ssa/traits/backend.rs @@ -5,7 +5,6 @@ use super::write::WriteBackendMethods; use super::CodegenObject; use rustc::middle::allocator::AllocatorKind; use rustc::middle::cstore::EncodedMetadata; -use rustc::mir::mono::Stats; use rustc::session::{Session, config}; use rustc::ty::TyCtxt; use rustc_codegen_utils::codegen_backend::CodegenBackend; @@ -49,7 +48,7 @@ pub trait ExtraBackendMethods: CodegenBackend + WriteBackendMethods + Sized + Se &self, tcx: TyCtxt<'a, 'tcx, 'tcx>, cgu_name: InternedString, - ) -> Stats; + ); // If find_features is true this won't access `sess.crate_types` by assuming // that `is_pie_binary` is false. When we discover LLVM target features // `sess.crate_types` is uninitialized so we cannot access it. diff --git a/src/librustc_codegen_ssa/traits/misc.rs b/src/librustc_codegen_ssa/traits/misc.rs index 2797dd89f5b..5ea86df6e94 100644 --- a/src/librustc_codegen_ssa/traits/misc.rs +++ b/src/librustc_codegen_ssa/traits/misc.rs @@ -1,5 +1,4 @@ use super::BackendTypes; -use rustc::mir::mono::Stats; use rustc::session::Session; use rustc::ty::{self, Instance, Ty}; use rustc::util::nodemap::FxHashMap; @@ -17,8 +16,6 @@ pub trait MiscMethods<'tcx>: BackendTypes { fn eh_personality(&self) -> Self::Value; fn eh_unwind_resume(&self) -> Self::Value; fn sess(&self) -> &Session; - fn stats(&self) -> &RefCell<Stats>; - fn consume_stats(self) -> RefCell<Stats>; fn codegen_unit(&self) -> &Arc<CodegenUnit<'tcx>>; fn used_statics(&self) -> &RefCell<Vec<Self::Value>>; fn set_frame_pointer_elimination(&self, llfn: Self::Value); |
