diff options
| author | bjorn3 <17426603+bjorn3@users.noreply.github.com> | 2024-12-13 09:39:26 +0000 |
|---|---|---|
| committer | bjorn3 <17426603+bjorn3@users.noreply.github.com> | 2025-05-28 20:55:00 +0000 |
| commit | c593c0170347c016e54ab754d8dcdc283f4f4dfb (patch) | |
| tree | 097bc660e68822bfd149426fc77a17004011d3a0 /compiler/rustc_codegen_ssa/src/traits/misc.rs | |
| parent | 6f69710780d579b180ab38da4c1384d630f7bd31 (diff) | |
| download | rust-c593c0170347c016e54ab754d8dcdc283f4f4dfb.tar.gz rust-c593c0170347c016e54ab754d8dcdc283f4f4dfb.zip | |
Remove codegen_unit from MiscCodegenMethods
Diffstat (limited to 'compiler/rustc_codegen_ssa/src/traits/misc.rs')
| -rw-r--r-- | compiler/rustc_codegen_ssa/src/traits/misc.rs | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/compiler/rustc_codegen_ssa/src/traits/misc.rs b/compiler/rustc_codegen_ssa/src/traits/misc.rs index 4004947b464..d6dad4a1d19 100644 --- a/compiler/rustc_codegen_ssa/src/traits/misc.rs +++ b/compiler/rustc_codegen_ssa/src/traits/misc.rs @@ -1,7 +1,6 @@ use std::cell::RefCell; use rustc_data_structures::fx::FxHashMap; -use rustc_middle::mir::mono::CodegenUnit; use rustc_middle::ty::{self, Instance, Ty}; use rustc_session::Session; @@ -22,7 +21,6 @@ pub trait MiscCodegenMethods<'tcx>: BackendTypes { fn get_fn_addr(&self, instance: Instance<'tcx>) -> Self::Value; fn eh_personality(&self) -> Self::Value; fn sess(&self) -> &Session; - fn codegen_unit(&self) -> &'tcx CodegenUnit<'tcx>; fn set_frame_pointer_type(&self, llfn: Self::Function); fn apply_target_cpu_attr(&self, llfn: Self::Function); /// Declares the extern "C" main function for the entry point. Returns None if the symbol |
