about summary refs log tree commit diff
path: root/src/librustc_codegen_llvm/debuginfo/gdb.rs
diff options
context:
space:
mode:
authorDenis Merigoux <denis.merigoux@gmail.com>2018-08-28 17:50:57 +0200
committerEduard-Mihai Burtescu <edy.burt@gmail.com>2018-11-16 14:11:59 +0200
commitd3258448045d672b0cd273cb1ea9381b470c2ca2 (patch)
tree8c4b20fa7ddb041ede6b9040ee11eeb91f721980 /src/librustc_codegen_llvm/debuginfo/gdb.rs
parent8714e6bce6b04482723f0b735879533c82c114fa (diff)
downloadrust-d3258448045d672b0cd273cb1ea9381b470c2ca2.tar.gz
rust-d3258448045d672b0cd273cb1ea9381b470c2ca2.zip
Replaced Codegen field access by trait method
Diffstat (limited to 'src/librustc_codegen_llvm/debuginfo/gdb.rs')
-rw-r--r--src/librustc_codegen_llvm/debuginfo/gdb.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/librustc_codegen_llvm/debuginfo/gdb.rs b/src/librustc_codegen_llvm/debuginfo/gdb.rs
index 252650e52ba..13392a64c7b 100644
--- a/src/librustc_codegen_llvm/debuginfo/gdb.rs
+++ b/src/librustc_codegen_llvm/debuginfo/gdb.rs
@@ -26,11 +26,11 @@ use syntax::attr;
 /// Inserts a side-effect free instruction sequence that makes sure that the
 /// .debug_gdb_scripts global is referenced, so it isn't removed by the linker.
 pub fn insert_reference_to_gdb_debug_scripts_section_global(bx: &Builder) {
-    if needs_gdb_debug_scripts_section(bx.cx) {
-        let gdb_debug_scripts_section = get_or_insert_gdb_debug_scripts_section_global(bx.cx);
+    if needs_gdb_debug_scripts_section(bx.cx()) {
+        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 = [CodegenCx::c_i32(bx.cx(), 0), CodegenCx::c_i32(bx.cx(), 0)];
         let element = bx.inbounds_gep(gdb_debug_scripts_section, &indices);
         let volative_load_instruction = bx.volatile_load(element);
         unsafe {