@@ -207,7 +207,7 @@ void RegisterContextUnwind::InitializeZerothFrame() {
207207 m_fast_unwind_plan_sp = GetFastUnwindPlanForFrame ();
208208 m_full_unwind_plan_sp = GetFullUnwindPlanForFrame ();
209209
210- UnwindPlan::RowSP active_row;
210+ const UnwindPlan::Row * active_row;
211211 lldb::RegisterKind row_register_kind = eRegisterKindGeneric;
212212
213213 // If we have LanguageRuntime UnwindPlan for this unwind, use those
@@ -246,15 +246,15 @@ void RegisterContextUnwind::InitializeZerothFrame() {
246246 active_row =
247247 m_full_unwind_plan_sp->GetRowForFunctionOffset (m_current_offset);
248248 row_register_kind = m_full_unwind_plan_sp->GetRegisterKind ();
249- if (active_row. get () && log) {
249+ if (active_row && log) {
250250 StreamString active_row_strm;
251251 active_row->Dump (active_row_strm, m_full_unwind_plan_sp.get (), &m_thread,
252252 m_start_pc.GetLoadAddress (exe_ctx.GetTargetPtr ()));
253253 UnwindLogMsg (" %s" , active_row_strm.GetData ());
254254 }
255255 }
256256
257- if (!active_row. get () ) {
257+ if (!active_row) {
258258 UnwindLogMsg (" could not find an unwindplan row for this frame's pc" );
259259 m_frame_type = eNotAValidFrame;
260260 return ;
@@ -442,8 +442,8 @@ void RegisterContextUnwind::InitializeNonZerothFrame() {
442442 m_current_offset = -1 ;
443443 m_current_offset_backed_up_one = -1 ;
444444 RegisterKind row_register_kind = m_full_unwind_plan_sp->GetRegisterKind ();
445- UnwindPlan::RowSP row = m_full_unwind_plan_sp-> GetRowForFunctionOffset ( 0 );
446- if (row. get ( )) {
445+ if ( const UnwindPlan::Row * row =
446+ m_full_unwind_plan_sp-> GetRowForFunctionOffset ( 0 )) {
447447 if (!ReadFrameAddress (row_register_kind, row->GetCFAValue (), m_cfa)) {
448448 UnwindLogMsg (" failed to get cfa value" );
449449 if (m_frame_type != eSkipFrame) // don't override eSkipFrame
@@ -593,7 +593,7 @@ void RegisterContextUnwind::InitializeNonZerothFrame() {
593593 }
594594 }
595595
596- UnwindPlan::RowSP active_row;
596+ const UnwindPlan::Row * active_row;
597597 RegisterKind row_register_kind = eRegisterKindGeneric;
598598
599599 // If we have LanguageRuntime UnwindPlan for this unwind, use those
@@ -640,7 +640,7 @@ void RegisterContextUnwind::InitializeNonZerothFrame() {
640640 m_fast_unwind_plan_sp->GetRowForFunctionOffset (m_current_offset);
641641 row_register_kind = m_fast_unwind_plan_sp->GetRegisterKind ();
642642 PropagateTrapHandlerFlagFromUnwindPlan (m_fast_unwind_plan_sp);
643- if (active_row. get () && log) {
643+ if (active_row && log) {
644644 StreamString active_row_strm;
645645 active_row->Dump (active_row_strm, m_fast_unwind_plan_sp.get (), &m_thread,
646646 m_start_pc.GetLoadAddress (exe_ctx.GetTargetPtr ()));
@@ -655,7 +655,7 @@ void RegisterContextUnwind::InitializeNonZerothFrame() {
655655 m_current_offset_backed_up_one);
656656 row_register_kind = m_full_unwind_plan_sp->GetRegisterKind ();
657657 PropagateTrapHandlerFlagFromUnwindPlan (m_full_unwind_plan_sp);
658- if (active_row. get () && log) {
658+ if (active_row && log) {
659659 StreamString active_row_strm;
660660 active_row->Dump (active_row_strm, m_full_unwind_plan_sp.get (),
661661 &m_thread,
@@ -667,7 +667,7 @@ void RegisterContextUnwind::InitializeNonZerothFrame() {
667667 }
668668 }
669669
670- if (!active_row. get () ) {
670+ if (!active_row) {
671671 m_frame_type = eNotAValidFrame;
672672 UnwindLogMsg (" could not find unwind row for this pc" );
673673 return ;
@@ -1285,7 +1285,7 @@ RegisterContextUnwind::SavedLocationForRegister(
12851285 RegisterKind unwindplan_registerkind = kNumRegisterKinds ;
12861286
12871287 if (m_fast_unwind_plan_sp) {
1288- UnwindPlan::RowSP active_row =
1288+ const UnwindPlan::Row * active_row =
12891289 m_fast_unwind_plan_sp->GetRowForFunctionOffset (m_current_offset);
12901290 unwindplan_registerkind = m_fast_unwind_plan_sp->GetRegisterKind ();
12911291 if (regnum.GetAsKind (unwindplan_registerkind) == LLDB_INVALID_REGNUM) {
@@ -1326,12 +1326,12 @@ RegisterContextUnwind::SavedLocationForRegister(
13261326 RegisterNumber pc_regnum (m_thread, eRegisterKindGeneric,
13271327 LLDB_REGNUM_GENERIC_PC);
13281328
1329- UnwindPlan::RowSP active_row =
1329+ const UnwindPlan::Row * active_row =
13301330 m_full_unwind_plan_sp->GetRowForFunctionOffset (
13311331 m_current_offset_backed_up_one);
13321332 unwindplan_registerkind = m_full_unwind_plan_sp->GetRegisterKind ();
13331333
1334- if (got_new_full_unwindplan && active_row. get () && log) {
1334+ if (got_new_full_unwindplan && active_row && log) {
13351335 StreamString active_row_strm;
13361336 ExecutionContext exe_ctx (m_thread.shared_from_this ());
13371337 active_row->Dump (active_row_strm, m_full_unwind_plan_sp.get (),
@@ -1455,7 +1455,7 @@ RegisterContextUnwind::SavedLocationForRegister(
14551455 if (ForceSwitchToFallbackUnwindPlan ()) {
14561456 // Update for the possibly new unwind plan
14571457 unwindplan_registerkind = m_full_unwind_plan_sp->GetRegisterKind ();
1458- UnwindPlan::RowSP active_row =
1458+ const UnwindPlan::Row * active_row =
14591459 m_full_unwind_plan_sp->GetRowForFunctionOffset (m_current_offset);
14601460
14611461 // Sanity check: Verify that we can fetch a pc value and CFA value
@@ -1799,7 +1799,7 @@ bool RegisterContextUnwind::TryFallbackUnwindPlan() {
17991799
18001800 m_full_unwind_plan_sp = m_fallback_unwind_plan_sp;
18011801
1802- UnwindPlan::RowSP active_row =
1802+ const UnwindPlan::Row * active_row =
18031803 m_fallback_unwind_plan_sp->GetRowForFunctionOffset (
18041804 m_current_offset_backed_up_one);
18051805
@@ -1885,7 +1885,7 @@ bool RegisterContextUnwind::ForceSwitchToFallbackUnwindPlan() {
18851885 return false ;
18861886 }
18871887
1888- UnwindPlan::RowSP active_row =
1888+ const UnwindPlan::Row * active_row =
18891889 m_fallback_unwind_plan_sp->GetRowForFunctionOffset (m_current_offset);
18901890
18911891 if (active_row &&
@@ -1967,7 +1967,7 @@ void RegisterContextUnwind::PropagateTrapHandlerFlagFromUnwindPlan(
19671967}
19681968
19691969bool RegisterContextUnwind::ReadFrameAddress (
1970- lldb::RegisterKind row_register_kind, UnwindPlan::Row::FAValue &fa,
1970+ lldb::RegisterKind row_register_kind, const UnwindPlan::Row::FAValue &fa,
19711971 addr_t &address) {
19721972 RegisterValue reg_value;
19731973
0 commit comments