Files
rust/src/librustc_codegen_ssa/traits/statics.rs

13 lines
397 B
Rust
Raw Normal View History

use super::BackendTypes;
use rustc_hir::def_id::DefId;
use rustc_target::abi::Align;
2018-09-10 16:28:47 +02:00
pub trait StaticMethods: BackendTypes {
2018-09-13 14:58:19 +02:00
fn static_addr_of(&self, cv: Self::Value, align: Align, kind: Option<&str>) -> Self::Value;
fn codegen_static(&self, def_id: DefId, is_mutable: bool);
2018-09-10 16:28:47 +02:00
}
pub trait StaticBuilderMethods: BackendTypes {
2018-12-02 14:35:11 +01:00
fn get_static(&mut self, def_id: DefId) -> Self::Value;
}