blob: c726213025350d9d3fb0b49a44b4575bb3365874 [file] [log] [blame]
use rustc_hir::def_id::DefId;
use rustc_middle::mir::interpret::ConstAllocation;
use super::BackendTypes;
pub trait StaticCodegenMethods: BackendTypes {
fn static_addr_of(&self, alloc: ConstAllocation<'_>, kind: Option<&str>) -> Self::Value;
fn codegen_static(&mut self, def_id: DefId);
}
pub trait StaticBuilderMethods: BackendTypes {
fn get_static(&mut self, def_id: DefId) -> Self::Value;
}