From e8da3c6c3266cb4b7673ca78c19dea64dcee8759 Mon Sep 17 00:00:00 2001 From: bjorn3 Date: Sat, 24 Nov 2018 17:30:48 +0100 Subject: Remove static_addr_of_mut from cg_ssa --- src/librustc_codegen_llvm/consts.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/librustc_codegen_llvm') diff --git a/src/librustc_codegen_llvm/consts.rs b/src/librustc_codegen_llvm/consts.rs index 4c2d73282cb..676d182dbac 100644 --- a/src/librustc_codegen_llvm/consts.rs +++ b/src/librustc_codegen_llvm/consts.rs @@ -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, -- cgit 1.4.1-3-g733a5