From 24868a16c71d9a024101cce3b9ecc4b5ad038d07 Mon Sep 17 00:00:00 2001 From: David Srbecky Date: Fri, 29 Jan 2016 18:59:56 +0000 Subject: Share DWARF .debug_abbrev sections. Restructure the code so that all compilation units share the same .debug_abbrev sections. This deduplicates many of the abbrevs. Change-Id: I7da07a8c850871786df52674183c16d574684729 --- compiler/dwarf/dwarf_test.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'compiler/dwarf/dwarf_test.cc') diff --git a/compiler/dwarf/dwarf_test.cc b/compiler/dwarf/dwarf_test.cc index e9cd421da9..32373119b2 100644 --- a/compiler/dwarf/dwarf_test.cc +++ b/compiler/dwarf/dwarf_test.cc @@ -283,7 +283,8 @@ TEST_F(DwarfTest, DebugLineSpecialOpcodes) { TEST_F(DwarfTest, DebugInfo) { constexpr bool is64bit = false; - DebugInfoEntryWriter<> info(is64bit, &debug_abbrev_data_); + DebugAbbrevWriter<> debug_abbrev(&debug_abbrev_data_); + DebugInfoEntryWriter<> info(is64bit, &debug_abbrev); DW_CHECK("Contents of the .debug_info section:"); info.StartTag(dwarf::DW_TAG_compile_unit); DW_CHECK("Abbrev Number: 1 (DW_TAG_compile_unit)"); -- cgit v1.2.3-59-g8ed1b