@@ -1196,18 +1196,17 @@ ValueObjectSP ABISysV_hexagon::GetReturnValueObjectImpl(
11961196// called when we are on the first instruction of a new function for hexagon
11971197// the return address is in RA (R31)
11981198UnwindPlanSP ABISysV_hexagon::CreateFunctionEntryUnwindPlan () {
1199- UnwindPlan::RowSP row ( new UnwindPlan::Row) ;
1199+ UnwindPlan::Row row;
12001200
12011201 // Our Call Frame Address is the stack pointer value
1202- row->GetCFAValue ().SetIsRegisterPlusOffset (LLDB_REGNUM_GENERIC_SP, 4 );
1203- row->SetOffset (0 );
1202+ row.GetCFAValue ().SetIsRegisterPlusOffset (LLDB_REGNUM_GENERIC_SP, 4 );
12041203
12051204 // The previous PC is in the LR
1206- row-> SetRegisterLocationToRegister (LLDB_REGNUM_GENERIC_PC,
1207- LLDB_REGNUM_GENERIC_RA, true );
1205+ row. SetRegisterLocationToRegister (LLDB_REGNUM_GENERIC_PC,
1206+ LLDB_REGNUM_GENERIC_RA, true );
12081207
12091208 auto plan_sp = std::make_shared<UnwindPlan>(eRegisterKindGeneric);
1210- plan_sp->AppendRow (row);
1209+ plan_sp->AppendRow (std::move ( row) );
12111210 plan_sp->SetReturnAddressRegister (LLDB_REGNUM_GENERIC_RA);
12121211 plan_sp->SetSourceName (" hexagon at-func-entry default" );
12131212 plan_sp->SetSourcedFromCompiler (eLazyBoolNo);
@@ -1219,17 +1218,17 @@ UnwindPlanSP ABISysV_hexagon::CreateDefaultUnwindPlan() {
12191218 uint32_t sp_reg_num = LLDB_REGNUM_GENERIC_SP;
12201219 uint32_t pc_reg_num = LLDB_REGNUM_GENERIC_PC;
12211220
1222- UnwindPlan::RowSP row ( new UnwindPlan::Row) ;
1221+ UnwindPlan::Row row;
12231222
1224- row-> SetUnspecifiedRegistersAreUndefined (true );
1225- row-> GetCFAValue ().SetIsRegisterPlusOffset (LLDB_REGNUM_GENERIC_FP, 8 );
1223+ row. SetUnspecifiedRegistersAreUndefined (true );
1224+ row. GetCFAValue ().SetIsRegisterPlusOffset (LLDB_REGNUM_GENERIC_FP, 8 );
12261225
1227- row-> SetRegisterLocationToAtCFAPlusOffset (fp_reg_num, -8 , true );
1228- row-> SetRegisterLocationToAtCFAPlusOffset (pc_reg_num, -4 , true );
1229- row-> SetRegisterLocationToIsCFAPlusOffset (sp_reg_num, 0 , true );
1226+ row. SetRegisterLocationToAtCFAPlusOffset (fp_reg_num, -8 , true );
1227+ row. SetRegisterLocationToAtCFAPlusOffset (pc_reg_num, -4 , true );
1228+ row. SetRegisterLocationToIsCFAPlusOffset (sp_reg_num, 0 , true );
12301229
12311230 auto plan_sp = std::make_shared<UnwindPlan>(eRegisterKindGeneric);
1232- plan_sp->AppendRow (row);
1231+ plan_sp->AppendRow (std::move ( row) );
12331232 plan_sp->SetSourceName (" hexagon default unwind plan" );
12341233 plan_sp->SetSourcedFromCompiler (eLazyBoolNo);
12351234 plan_sp->SetUnwindPlanValidAtAllInstructions (eLazyBoolNo);
0 commit comments