forked from OSchip/llvm-project
Reverted r303602, as it will be fixed in gtest.
llvm-svn: 304184
This commit is contained in:
parent
c5247e67e8
commit
0570841806
|
@ -311,9 +311,8 @@ void TestAllForms() {
|
||||||
EXPECT_EQ(Data2, toReference(DieDG.find(Attr_DW_FORM_ref2), 0));
|
EXPECT_EQ(Data2, toReference(DieDG.find(Attr_DW_FORM_ref2), 0));
|
||||||
EXPECT_EQ(Data4, toReference(DieDG.find(Attr_DW_FORM_ref4), 0));
|
EXPECT_EQ(Data4, toReference(DieDG.find(Attr_DW_FORM_ref4), 0));
|
||||||
EXPECT_EQ(Data8, toReference(DieDG.find(Attr_DW_FORM_ref8), 0));
|
EXPECT_EQ(Data8, toReference(DieDG.find(Attr_DW_FORM_ref8), 0));
|
||||||
if (Version >= 4) {
|
if (Version >= 4)
|
||||||
EXPECT_EQ(Data8_2, toReference(DieDG.find(Attr_DW_FORM_ref_sig8), 0));
|
EXPECT_EQ(Data8_2, toReference(DieDG.find(Attr_DW_FORM_ref_sig8), 0));
|
||||||
}
|
|
||||||
EXPECT_EQ(UData[0], toReference(DieDG.find(Attr_DW_FORM_ref_udata), 0));
|
EXPECT_EQ(UData[0], toReference(DieDG.find(Attr_DW_FORM_ref_udata), 0));
|
||||||
|
|
||||||
//----------------------------------------------------------------------
|
//----------------------------------------------------------------------
|
||||||
|
@ -321,17 +320,15 @@ void TestAllForms() {
|
||||||
//----------------------------------------------------------------------
|
//----------------------------------------------------------------------
|
||||||
EXPECT_EQ(1ULL, toUnsigned(DieDG.find(Attr_DW_FORM_flag_true), 0));
|
EXPECT_EQ(1ULL, toUnsigned(DieDG.find(Attr_DW_FORM_flag_true), 0));
|
||||||
EXPECT_EQ(0ULL, toUnsigned(DieDG.find(Attr_DW_FORM_flag_false), 1));
|
EXPECT_EQ(0ULL, toUnsigned(DieDG.find(Attr_DW_FORM_flag_false), 1));
|
||||||
if (Version >= 4) {
|
if (Version >= 4)
|
||||||
EXPECT_EQ(1ULL, toUnsigned(DieDG.find(Attr_DW_FORM_flag_present), 0));
|
EXPECT_EQ(1ULL, toUnsigned(DieDG.find(Attr_DW_FORM_flag_present), 0));
|
||||||
}
|
|
||||||
|
|
||||||
//----------------------------------------------------------------------
|
//----------------------------------------------------------------------
|
||||||
// Test SLEB128 based forms
|
// Test SLEB128 based forms
|
||||||
//----------------------------------------------------------------------
|
//----------------------------------------------------------------------
|
||||||
EXPECT_EQ(SData, toSigned(DieDG.find(Attr_DW_FORM_sdata), 0));
|
EXPECT_EQ(SData, toSigned(DieDG.find(Attr_DW_FORM_sdata), 0));
|
||||||
if (Version >= 5) {
|
if (Version >= 5)
|
||||||
EXPECT_EQ(ICSData, toSigned(DieDG.find(Attr_DW_FORM_implicit_const), 0));
|
EXPECT_EQ(ICSData, toSigned(DieDG.find(Attr_DW_FORM_implicit_const), 0));
|
||||||
}
|
|
||||||
|
|
||||||
//----------------------------------------------------------------------
|
//----------------------------------------------------------------------
|
||||||
// Test ULEB128 based forms
|
// Test ULEB128 based forms
|
||||||
|
@ -343,10 +340,9 @@ void TestAllForms() {
|
||||||
//----------------------------------------------------------------------
|
//----------------------------------------------------------------------
|
||||||
EXPECT_EQ(Dwarf32Values[0],
|
EXPECT_EQ(Dwarf32Values[0],
|
||||||
toReference(DieDG.find(Attr_DW_FORM_GNU_ref_alt), 0));
|
toReference(DieDG.find(Attr_DW_FORM_GNU_ref_alt), 0));
|
||||||
if (Version >= 4) {
|
if (Version >= 4)
|
||||||
EXPECT_EQ(Dwarf32Values[1],
|
EXPECT_EQ(Dwarf32Values[1],
|
||||||
toSectionOffset(DieDG.find(Attr_DW_FORM_sec_offset), 0));
|
toSectionOffset(DieDG.find(Attr_DW_FORM_sec_offset), 0));
|
||||||
}
|
|
||||||
|
|
||||||
//----------------------------------------------------------------------
|
//----------------------------------------------------------------------
|
||||||
// Add an address at the end to make sure we can decode this value
|
// Add an address at the end to make sure we can decode this value
|
||||||
|
|
Loading…
Reference in New Issue