Skip to content

Commit 01fad77

Browse files
committed
Remove static_addr_of_mut from cg_ssa
1 parent 000d9a5 commit 01fad77

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

src/librustc_codegen_llvm/consts.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -177,10 +177,8 @@ impl CodegenCx<'ll, 'tcx> {
177177
llvm::LLVMConstBitCast(val, ty)
178178
}
179179
}
180-
}
181180

182-
impl StaticMethods for CodegenCx<'ll, 'tcx> {
183-
fn static_addr_of_mut(
181+
crate fn static_addr_of_mut(
184182
&self,
185183
cv: &'ll Value,
186184
align: Align,
@@ -205,7 +203,9 @@ impl StaticMethods for CodegenCx<'ll, 'tcx> {
205203
gv
206204
}
207205
}
206+
}
208207

208+
impl StaticMethods for CodegenCx<'ll, 'tcx> {
209209
fn static_addr_of(
210210
&self,
211211
cv: &'ll Value,

src/librustc_codegen_ssa/traits/statics.rs

-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ use rustc::hir::def_id::DefId;
1313
use rustc::ty::layout::Align;
1414

1515
pub trait StaticMethods: BackendTypes {
16-
fn static_addr_of_mut(&self, cv: Self::Value, align: Align, kind: Option<&str>) -> Self::Value;
1716
fn static_addr_of(&self, cv: Self::Value, align: Align, kind: Option<&str>) -> Self::Value;
1817
fn get_static(&self, def_id: DefId) -> Self::Value;
1918
fn codegen_static(&self, def_id: DefId, is_mutable: bool);

0 commit comments

Comments
 (0)