All Builder methods now take &mut self instead of &self
This commit is contained in:
parent
1ebdfbb026
commit
54dd3a47fd
22 changed files with 716 additions and 656 deletions
|
@ -159,7 +159,7 @@ pub fn finalize(cx: &CodegenCx) {
|
|||
|
||||
impl DebugInfoBuilderMethods<'tcx> for Builder<'a, 'll, 'tcx> {
|
||||
fn declare_local(
|
||||
&self,
|
||||
&mut self,
|
||||
dbg_context: &FunctionDebugContext<&'ll DISubprogram>,
|
||||
variable_name: ast::Name,
|
||||
variable_type: Ty<'tcx>,
|
||||
|
@ -225,14 +225,14 @@ impl DebugInfoBuilderMethods<'tcx> for Builder<'a, 'll, 'tcx> {
|
|||
}
|
||||
|
||||
fn set_source_location(
|
||||
&self,
|
||||
&mut self,
|
||||
debug_context: &FunctionDebugContext<&'ll DISubprogram>,
|
||||
scope: Option<&'ll DIScope>,
|
||||
span: Span,
|
||||
) {
|
||||
set_source_location(debug_context, &self, scope, span)
|
||||
}
|
||||
fn insert_reference_to_gdb_debug_scripts_section_global(&self) {
|
||||
fn insert_reference_to_gdb_debug_scripts_section_global(&mut self) {
|
||||
gdb::insert_reference_to_gdb_debug_scripts_section_global(self)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue