From 7370d92da01ad07c649e3f988aaf55ee7585a803 Mon Sep 17 00:00:00 2001 From: David Srbecky Date: Tue, 12 Feb 2019 14:00:30 +0000 Subject: Remove oat_patches from the DWARF writer. We no longer use them. Test: test-art-host-gtest-dwarf_test Change-Id: Ie018d2314f028584edb398b6310a7284a0ec2069 --- compiler/debug/dwarf/dwarf_test.cc | 44 ++++++++------------------------------ 1 file changed, 9 insertions(+), 35 deletions(-) (limited to 'compiler/debug/dwarf/dwarf_test.cc') diff --git a/compiler/debug/dwarf/dwarf_test.cc b/compiler/debug/dwarf/dwarf_test.cc index 52717c352d..212fd63efa 100644 --- a/compiler/debug/dwarf/dwarf_test.cc +++ b/compiler/debug/dwarf/dwarf_test.cc @@ -121,19 +121,13 @@ TEST_F(DwarfTest, DebugFrame) { DebugFrameOpCodeWriter<> initial_opcodes; WriteCIE(is64bit, Reg(is64bit ? 16 : 8), initial_opcodes, &debug_frame_data_); - std::vector debug_frame_patches; - std::vector expected_patches = { 28 }; WriteFDE(is64bit, - 0, - 0, + /* cie_pointer= */ 0, 0x01000000, 0x01000000, ArrayRef(*opcodes.data()), - 0, - &debug_frame_data_, - &debug_frame_patches); + &debug_frame_data_); - EXPECT_EQ(expected_patches, debug_frame_patches); CheckObjdumpOutput(is64bit, "-W"); } @@ -142,20 +136,14 @@ TEST_F(DwarfTest, DebugFrame64) { DebugFrameOpCodeWriter<> initial_opcodes; WriteCIE(is64bit, Reg(16), initial_opcodes, &debug_frame_data_); DebugFrameOpCodeWriter<> opcodes; - std::vector debug_frame_patches; - std::vector expected_patches = { 32 }; WriteFDE(is64bit, - 0, - 0, + /* cie_pointer= */ 0, 0x0100000000000000, 0x0200000000000000, ArrayRef(*opcodes.data()), - 0, - &debug_frame_data_, - &debug_frame_patches); + &debug_frame_data_); DW_CHECK("FDE cie=00000000 pc=100000000000000..300000000000000"); - EXPECT_EQ(expected_patches, debug_frame_patches); CheckObjdumpOutput(is64bit, "-W"); } @@ -186,16 +174,12 @@ TEST_F(DwarfTest, x86_64_RegisterMapping) { DW_CHECK_NEXT("DW_CFA_offset: r15 (r15)"); DebugFrameOpCodeWriter<> initial_opcodes; WriteCIE(is64bit, Reg(16), initial_opcodes, &debug_frame_data_); - std::vector debug_frame_patches; WriteFDE(is64bit, - 0, - 0, + /* cie_pointer= */ 0, 0x0100000000000000, 0x0200000000000000, ArrayRef(*opcodes.data()), - 0, - &debug_frame_data_, - &debug_frame_patches); + &debug_frame_data_); CheckObjdumpOutput(is64bit, "-W"); } @@ -250,12 +234,8 @@ TEST_F(DwarfTest, DebugLine) { DW_CHECK_NEXT("Entry\tDir\tTime\tSize\tName"); DW_CHECK_NEXT("1\t0\t1000\t2000\tfile.c"); - std::vector debug_line_patches; - std::vector expected_patches = { 87 }; - WriteDebugLineTable(include_directories, files, opcodes, - 0, &debug_line_data_, &debug_line_patches); + WriteDebugLineTable(include_directories, files, opcodes, &debug_line_data_); - EXPECT_EQ(expected_patches, debug_line_patches); CheckObjdumpOutput(is64bit, "-W"); } @@ -290,9 +270,7 @@ TEST_F(DwarfTest, DebugLineSpecialOpcodes) { std::vector directories; std::vector files = { { "file.c", 0, 1000, 2000 } }; - std::vector debug_line_patches; - WriteDebugLineTable(directories, files, opcodes, - 0, &debug_line_data_, &debug_line_patches); + WriteDebugLineTable(directories, files, opcodes, &debug_line_data_); CheckObjdumpOutput(is64bit, "-W -WL"); } @@ -346,12 +324,8 @@ TEST_F(DwarfTest, DebugInfo) { DW_CHECK_NEXT("DW_AT_high_pc DW_FORM_addr"); DW_CHECK("3 DW_TAG_compile_unit [no children]"); - std::vector debug_info_patches; - std::vector expected_patches = { 16, 20, 29, 33, 42, 46 }; - dwarf::WriteDebugInfoCU(/* debug_abbrev_offset= */ 0, info, - 0, &debug_info_data_, &debug_info_patches); + dwarf::WriteDebugInfoCU(/* debug_abbrev_offset= */ 0, info, &debug_info_data_); - EXPECT_EQ(expected_patches, debug_info_patches); CheckObjdumpOutput(is64bit, "-W"); } -- cgit v1.2.3-59-g8ed1b