@@ -27,9 +27,6 @@ class TestRiscvInstEmulation : public testing::Test {
2727 static void SetUpTestCase ();
2828 static void TearDownTestCase ();
2929
30- // virtual void SetUp() override { }
31- // virtual void TearDown() override { }
32-
3330protected:
3431};
3532
@@ -56,11 +53,6 @@ TEST_F(TestRiscvInstEmulation, TestSimpleRiscvFunction) {
5653 UnwindAssemblyInstEmulation::CreateInstance (arch)));
5754 ASSERT_NE (nullptr , engine);
5855
59- const UnwindPlan::Row *row;
60- AddressRange sample_range;
61- UnwindPlan unwind_plan (eRegisterKindLLDB);
62- UnwindPlan::Row::AbstractRegisterLocation regloc;
63-
6456 // RISC-V function with compressed and uncompressed instructions
6557 // 0x0000: 1141 addi sp, sp, -0x10
6658 // 0x0002: e406 sd ra, 0x8(sp)
@@ -113,8 +105,11 @@ TEST_F(TestRiscvInstEmulation, TestSimpleRiscvFunction) {
113105 // (after saving s0/fp) row[4]: 8: CFA=s0+0 => fp=[CFA-16] ra=[CFA-8]
114106 // (after setting frame pointer: s0=sp+16)
115107
116- // Debug: Print all rows in the unwind plan
117108
109+ const UnwindPlan::Row *row;
110+ AddressRange sample_range;
111+ UnwindPlan unwind_plan (eRegisterKindLLDB);
112+ UnwindPlan::Row::AbstractRegisterLocation regloc;
118113 sample_range = AddressRange (0x1000 , sizeof (data));
119114
120115 EXPECT_TRUE (engine->GetNonCallSiteUnwindPlanFromAssembly (
0 commit comments