@@ -1051,7 +1051,7 @@ bool DWARFASTParserRust::CompleteTypeFromDWARF(const DWARFDIE &die,
1051
1051
return bool (die);
1052
1052
}
1053
1053
1054
- Function *DWARFASTParserRust::ParseFunctionFromDWARF (const SymbolContext &sc ,
1054
+ Function *DWARFASTParserRust::ParseFunctionFromDWARF (CompileUnit &comp_unit ,
1055
1055
const DWARFDIE &die) {
1056
1056
DWARFRangeList func_ranges;
1057
1057
const char *name = NULL ;
@@ -1091,7 +1091,7 @@ Function *DWARFASTParserRust::ParseFunctionFromDWARF(const SymbolContext &sc,
1091
1091
std::unique_ptr<Declaration> decl_ap;
1092
1092
if (decl_file != 0 || decl_line != 0 || decl_column != 0 )
1093
1093
decl_ap.reset (new Declaration (
1094
- sc. comp_unit -> GetSupportFiles ().GetFileSpecAtIndex (decl_file),
1094
+ comp_unit. GetSupportFiles ().GetFileSpecAtIndex (decl_file),
1095
1095
decl_line, decl_column));
1096
1096
1097
1097
SymbolFileDWARF *dwarf = die.GetDWARF ();
@@ -1102,15 +1102,15 @@ Function *DWARFASTParserRust::ParseFunctionFromDWARF(const SymbolContext &sc,
1102
1102
1103
1103
if (dwarf->FixupAddress (func_range.GetBaseAddress ())) {
1104
1104
const user_id_t func_user_id = die.GetID ();
1105
- func_sp.reset (new Function (sc. comp_unit ,
1105
+ func_sp.reset (new Function (& comp_unit,
1106
1106
func_user_id, // UserID is the DIE offset
1107
1107
func_user_id, func_name, func_type,
1108
1108
func_range)); // first address range
1109
1109
1110
1110
if (func_sp.get () != NULL ) {
1111
1111
if (frame_base.IsValid ())
1112
1112
func_sp->GetFrameBaseExpression () = frame_base;
1113
- sc. comp_unit -> AddFunction (func_sp);
1113
+ comp_unit. AddFunction (func_sp);
1114
1114
return func_sp.get ();
1115
1115
}
1116
1116
}
0 commit comments