]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc_codegen_llvm/debuginfo/gdb.rs
All Builder methods now take &mut self instead of &self
[rust.git] / src / librustc_codegen_llvm / debuginfo / gdb.rs
index 26e359f39cfb3cb93d3cffff404e6bfd26c7b367..d6a7f04e1636734a3ae1312a9bec391acbb668b9 100644 (file)
@@ -23,7 +23,7 @@
 
 /// 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) {
+pub fn insert_reference_to_gdb_debug_scripts_section_global(bx: &mut Builder) {
     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