diff options
author | Paul Robinson <paul.robinson@sony.com> | 2017-12-15 20:29:25 +0000 |
---|---|---|
committer | Paul Robinson <paul.robinson@sony.com> | 2017-12-15 20:29:25 +0000 |
commit | 86e9c5d8a846053e9159c49e66c0fd9f27845bdc (patch) | |
tree | 97cc3e3182500781c7b02d5603e2823af6f2c0a5 /unittests | |
parent | 47812d8e557d18833ce3501316d6b0e7795b5038 (diff) |
Revert "[DWARFv5] Dump an MD5 checksum in the line-table header."
Unit test fails on some bots.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@320857 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'unittests')
-rw-r--r-- | unittests/DebugInfo/DWARF/DWARFDebugInfoTest.cpp | 18 | ||||
-rw-r--r-- | unittests/DebugInfo/DWARF/DWARFFormValueTest.cpp | 9 |
2 files changed, 0 insertions, 27 deletions
diff --git a/unittests/DebugInfo/DWARF/DWARFDebugInfoTest.cpp b/unittests/DebugInfo/DWARF/DWARFDebugInfoTest.cpp index cb7bf82d86f..953c5c57d20 100644 --- a/unittests/DebugInfo/DWARF/DWARFDebugInfoTest.cpp +++ b/unittests/DebugInfo/DWARF/DWARFDebugInfoTest.cpp @@ -82,8 +82,6 @@ void TestAllForms() { const uint32_t Data4 = 0x6789abcdU; const uint64_t Data8 = 0x0011223344556677ULL; const uint64_t Data8_2 = 0xAABBCCDDEEFF0011ULL; - const uint8_t Data16[16] = {1, 2, 3, 4, 5, 6, 7, 8, - 9, 10, 11, 12, 13, 14, 15, 16}; const int64_t SData = INT64_MIN; const int64_t ICSData = INT64_MAX; // DW_FORM_implicit_const SData const uint64_t UData[] = {UINT64_MAX - 1, UINT64_MAX - 2, UINT64_MAX - 3, @@ -122,11 +120,6 @@ void TestAllForms() { const auto Attr_DW_FORM_block4 = static_cast<dwarf::Attribute>(Attr++); CUDie.addAttribute(Attr_DW_FORM_block4, DW_FORM_block4, BlockData, BlockSize); - // We handle data16 as a block form. - const auto Attr_DW_FORM_data16 = static_cast<dwarf::Attribute>(Attr++); - if (Version >= 5) - CUDie.addAttribute(Attr_DW_FORM_data16, DW_FORM_data16, Data16, 16); - //---------------------------------------------------------------------- // Test data forms //---------------------------------------------------------------------- @@ -283,17 +276,6 @@ void TestAllForms() { EXPECT_EQ(ExtractedBlockData.size(), BlockSize); EXPECT_TRUE(memcmp(ExtractedBlockData.data(), BlockData, BlockSize) == 0); - // Data16 is handled like a block. - if (Version >= 5) { - FormValue = DieDG.find(Attr_DW_FORM_data16); - EXPECT_TRUE((bool)FormValue); - BlockDataOpt = FormValue->getAsBlock(); - EXPECT_TRUE(BlockDataOpt.hasValue()); - ExtractedBlockData = BlockDataOpt.getValue(); - EXPECT_EQ(ExtractedBlockData.size(), 16u); - EXPECT_TRUE(memcmp(ExtractedBlockData.data(), Data16, 16) == 0); - } - //---------------------------------------------------------------------- // Test data forms //---------------------------------------------------------------------- diff --git a/unittests/DebugInfo/DWARF/DWARFFormValueTest.cpp b/unittests/DebugInfo/DWARF/DWARFFormValueTest.cpp index 8fc6b786ba4..14550b9082b 100644 --- a/unittests/DebugInfo/DWARF/DWARFFormValueTest.cpp +++ b/unittests/DebugInfo/DWARF/DWARFFormValueTest.cpp @@ -160,15 +160,6 @@ TEST(DWARFFormValue, SignedConstantForms) { EXPECT_EQ(LEBMax.getAsSignedConstant().getValue(), LLONG_MAX); EXPECT_EQ(LEB1.getAsSignedConstant().getValue(), -42); EXPECT_EQ(LEB2.getAsSignedConstant().getValue(), 42); - - // Data16 is a little tricky. - using uint128_t = std::array<uint8_t, 16>; - uint128_t Item16({0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15}); - auto Data16 = createDataXFormValue<uint128_t>(DW_FORM_data16, Item16); - SmallString<32> Str; - raw_svector_ostream Res(Str); - Data16.dump(Res, DIDumpOptions()); - EXPECT_EQ(memcmp(Str.data(), "000102030405060708090a0b0c0d0e0f", 32), 0); } } // end anonymous namespace |