@@ -2059,25 +2059,25 @@ TEST_F(DebugLineBasicFixture, LookupAddressRangeWithStmtSequenceOffset) {
2059
2059
dwarfgen::CompileUnit &CU = Gen->addCompileUnit ();
2060
2060
dwarfgen::DIE CUDie = CU.getUnitDIE ();
2061
2061
2062
- CUDie.addAttribute (DW_AT_name, DW_FORM_strp , " /tmp/main.c" );
2062
+ CUDie.addAttribute (DW_AT_name, DW_FORM_string , " /tmp/main.c" );
2063
2063
CUDie.addAttribute (DW_AT_language, DW_FORM_data2, DW_LANG_C);
2064
2064
2065
2065
dwarfgen::DIE SD1 = CUDie.addChild (DW_TAG_subprogram);
2066
- SD1.addAttribute (DW_AT_name, DW_FORM_strp , " sub1" );
2066
+ SD1.addAttribute (DW_AT_name, DW_FORM_string , " sub1" );
2067
2067
SD1.addAttribute (DW_AT_low_pc, DW_FORM_addr, 0x1000U );
2068
2068
SD1.addAttribute (DW_AT_high_pc, DW_FORM_addr, 0x1032U );
2069
2069
// DW_AT_LLVM_stmt_sequence points to the first sequence
2070
2070
SD1.addAttribute (DW_AT_LLVM_stmt_sequence, DW_FORM_sec_offset, 0x2e );
2071
2071
2072
2072
dwarfgen::DIE SD2 = CUDie.addChild (DW_TAG_subprogram);
2073
- SD2.addAttribute (DW_AT_name, DW_FORM_strp , " sub2" );
2073
+ SD2.addAttribute (DW_AT_name, DW_FORM_string , " sub2" );
2074
2074
SD2.addAttribute (DW_AT_low_pc, DW_FORM_addr, 0x1000U );
2075
2075
SD2.addAttribute (DW_AT_high_pc, DW_FORM_addr, 0x1032U );
2076
2076
// DW_AT_LLVM_stmt_sequence points to the second sequence
2077
2077
SD2.addAttribute (DW_AT_LLVM_stmt_sequence, DW_FORM_sec_offset, 0x42 );
2078
2078
2079
2079
dwarfgen::DIE SD3 = CUDie.addChild (DW_TAG_subprogram);
2080
- SD3.addAttribute (DW_AT_name, DW_FORM_strp , " sub3" );
2080
+ SD3.addAttribute (DW_AT_name, DW_FORM_string , " sub3" );
2081
2081
SD3.addAttribute (DW_AT_low_pc, DW_FORM_addr, 0x1000U );
2082
2082
SD3.addAttribute (DW_AT_high_pc, DW_FORM_addr, 0x1032U );
2083
2083
// Invalid DW_AT_LLVM_stmt_sequence
@@ -2153,7 +2153,7 @@ TEST_F(DebugLineBasicFixture, LookupAddressRangeWithStmtSequenceOffset) {
2153
2153
&Sub1Die);
2154
2154
EXPECT_TRUE (Found);
2155
2155
ASSERT_EQ (Rows.size (), 1u );
2156
- EXPECT_EQ (Rows[0 ], 0 );
2156
+ EXPECT_EQ (Rows[0 ], 0U );
2157
2157
2158
2158
// Look up using Sub2Die, which has a valid DW_AT_LLVM_stmt_sequence and
2159
2159
// should return row 3
@@ -2163,7 +2163,7 @@ TEST_F(DebugLineBasicFixture, LookupAddressRangeWithStmtSequenceOffset) {
2163
2163
&Sub2Die);
2164
2164
EXPECT_TRUE (Found);
2165
2165
ASSERT_EQ (Rows.size (), 1u );
2166
- EXPECT_EQ (Rows[0 ], 3 );
2166
+ EXPECT_EQ (Rows[0 ], 3u );
2167
2167
}
2168
2168
}
2169
2169
} // end anonymous namespace
0 commit comments