Skip to content

Commit 59c974e

Browse files
author
Bar Soloveychik
committed
fixed test comments
1 parent 49a8a56 commit 59c974e

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed

lldb/unittests/Instruction/RISCV/TestRiscvInstEmulation.cpp

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -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-
3330
protected:
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

Comments
 (0)