diff options
| author | Denis Merigoux <denis.merigoux@gmail.com> | 2018-08-30 15:41:59 +0200 |
|---|---|---|
| committer | Eduard-Mihai Burtescu <edy.burt@gmail.com> | 2018-11-16 14:11:59 +0200 |
| commit | 3e77f2fc4f679792bc9579fb9716c3a72fd1397b (patch) | |
| tree | 5627434cc92fb9bd34851f6ef19dcf33ecc53449 /src/librustc_codegen_llvm/debuginfo | |
| parent | 6c5b990c5f5e17f044d7c4673802a11d50bc709f (diff) | |
| download | rust-3e77f2fc4f679792bc9579fb9716c3a72fd1397b.tar.gz rust-3e77f2fc4f679792bc9579fb9716c3a72fd1397b.zip | |
Use the method form for CodegenCx everywhere
Diffstat (limited to 'src/librustc_codegen_llvm/debuginfo')
| -rw-r--r-- | src/librustc_codegen_llvm/debuginfo/gdb.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/librustc_codegen_llvm/debuginfo/gdb.rs b/src/librustc_codegen_llvm/debuginfo/gdb.rs index 13392a64c7b..78958080a3b 100644 --- a/src/librustc_codegen_llvm/debuginfo/gdb.rs +++ b/src/librustc_codegen_llvm/debuginfo/gdb.rs @@ -30,7 +30,7 @@ pub fn insert_reference_to_gdb_debug_scripts_section_global(bx: &Builder) { let gdb_debug_scripts_section = get_or_insert_gdb_debug_scripts_section_global(bx.cx()); // Load just the first byte as that's all that's necessary to force // LLVM to keep around the reference to the global. - let indices = [CodegenCx::c_i32(bx.cx(), 0), CodegenCx::c_i32(bx.cx(), 0)]; + let indices = [bx.cx().c_i32(0), bx.cx().c_i32(0)]; let element = bx.inbounds_gep(gdb_debug_scripts_section, &indices); let volative_load_instruction = bx.volatile_load(element); unsafe { @@ -64,7 +64,7 @@ pub fn get_or_insert_gdb_debug_scripts_section_global(cx: &CodegenCx<'ll, '_>) bug!("symbol `{}` is already defined", section_var_name) }); llvm::LLVMSetSection(section_var, section_name.as_ptr() as *const _); - llvm::LLVMSetInitializer(section_var, CodegenCx::c_bytes(cx, section_contents)); + llvm::LLVMSetInitializer(section_var, cx.c_bytes(section_contents)); llvm::LLVMSetGlobalConstant(section_var, llvm::True); llvm::LLVMSetUnnamedAddr(section_var, llvm::True); llvm::LLVMRustSetLinkage(section_var, llvm::Linkage::LinkOnceODRLinkage); |
