rustc_codegen_ssa/traits/statics.rs
1use rustc_hir::def_id::DefId;
2use rustc_middle::mir::interpret::ConstAllocation;
3
4use super::BackendTypes;
5
6pub trait StaticCodegenMethods: BackendTypes {
7 fn static_addr_of(&self, alloc: ConstAllocation<'_>, kind: Option<&str>) -> Self::Value;
8 fn codegen_static(&mut self, def_id: DefId);
9}
10
11pub trait StaticBuilderMethods: BackendTypes {
12 fn get_static(&mut self, def_id: DefId) -> Self::Value;
13}