[WIP] Make some debug info methods take &mut FunctionDebugContext
declare_local still takes &FunctionDebugContext, because of borrowck errors
This commit is contained in:
parent
ab8f1527e4
commit
794ecd965a
3 changed files with 9 additions and 13 deletions
|
@ -216,7 +216,7 @@ impl DebugInfoBuilderMethods<'tcx> for Builder<'a, 'll, 'tcx> {
|
|||
|
||||
fn set_source_location(
|
||||
&mut self,
|
||||
debug_context: &FunctionDebugContext<&'ll DISubprogram>,
|
||||
debug_context: &mut FunctionDebugContext<&'ll DISubprogram>,
|
||||
scope: Option<&'ll DIScope>,
|
||||
span: Span,
|
||||
) {
|
||||
|
@ -519,7 +519,7 @@ impl DebugInfoMethods<'tcx> for CodegenCx<'ll, 'tcx> {
|
|||
fn create_mir_scopes(
|
||||
&self,
|
||||
mir: &mir::Mir<'_>,
|
||||
debug_context: &FunctionDebugContext<&'ll DISubprogram>,
|
||||
debug_context: &mut FunctionDebugContext<&'ll DISubprogram>,
|
||||
) -> IndexVec<mir::SourceScope, MirDebugScope<&'ll DIScope>> {
|
||||
create_scope_map::create_mir_scopes(self, mir, debug_context)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue