1
Fork 0

All CommonMethods now real methods (not static)

This commit is contained in:
Denis Merigoux 2018-08-30 14:58:15 +02:00 committed by Eduard-Mihai Burtescu
parent 33eee83737
commit 6c5b990c5f
7 changed files with 31 additions and 32 deletions

View file

@ -1151,7 +1151,7 @@ fn compile_codegen_unit<'a, 'tcx>(tcx: TyCtxt<'a, 'tcx, 'tcx>,
if !cx.used_statics.borrow().is_empty() {
let name = const_cstr!("llvm.used");
let section = const_cstr!("llvm.metadata");
let array = CodegenCx::c_array(Type::i8(&cx).ptr_to(), &*cx.used_statics.borrow());
let array = cx.c_array(Type::i8(&cx).ptr_to(), &*cx.used_statics.borrow());
unsafe {
let g = llvm::LLVMAddGlobal(cx.llmod,