Remove static_addr_of_mut from cg_ssa
This commit is contained in:
parent
aaca5a38ee
commit
e8da3c6c32
2 changed files with 3 additions and 4 deletions
|
@ -177,10 +177,8 @@ impl CodegenCx<'ll, 'tcx> {
|
|||
llvm::LLVMConstBitCast(val, ty)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
impl StaticMethods for CodegenCx<'ll, 'tcx> {
|
||||
fn static_addr_of_mut(
|
||||
crate fn static_addr_of_mut(
|
||||
&self,
|
||||
cv: &'ll Value,
|
||||
align: Align,
|
||||
|
@ -205,7 +203,9 @@ impl StaticMethods for CodegenCx<'ll, 'tcx> {
|
|||
gv
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
impl StaticMethods for CodegenCx<'ll, 'tcx> {
|
||||
fn static_addr_of(
|
||||
&self,
|
||||
cv: &'ll Value,
|
||||
|
|
|
@ -13,7 +13,6 @@ use rustc::hir::def_id::DefId;
|
|||
use rustc::ty::layout::Align;
|
||||
|
||||
pub trait StaticMethods: BackendTypes {
|
||||
fn static_addr_of_mut(&self, cv: Self::Value, align: Align, kind: Option<&str>) -> Self::Value;
|
||||
fn static_addr_of(&self, cv: Self::Value, align: Align, kind: Option<&str>) -> Self::Value;
|
||||
fn get_static(&self, def_id: DefId) -> Self::Value;
|
||||
fn codegen_static(&self, def_id: DefId, is_mutable: bool);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue