about summary refs log tree commit diff
path: root/compiler/rustc_codegen_ssa/src/traits/statics.rs
blob: 0e1e445c72f35af79e566799b3643911e9bc503c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
use rustc_abi::Align;
use rustc_hir::def_id::DefId;

use super::BackendTypes;

pub trait StaticCodegenMethods: BackendTypes {
    fn static_addr_of(&self, cv: Self::Value, align: Align, 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;
}