From b7020255e5573381b25d773b70dd0219bc8b06aa Mon Sep 17 00:00:00 2001 From: David Blaikie Date: Fri, 4 Dec 2015 21:16:42 +0000 Subject: [llvm-dwp] Include the debug_line.dwo section This probably shouldn't be generated in the .dwo file for CUs, only for TUs, but it's in the sample .dwos (generated by clang) so dwp should reflect that. Arguably the DWP tool could be smart enough to know that the CUs shouldn't need a debug_line.dwo section and skip that even when it's legitimately generated for TUs, but that's a bit more off-book. llvm-svn: 254767 --- llvm/tools/llvm-dwp/llvm-dwp.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'llvm/tools/llvm-dwp/llvm-dwp.cpp') diff --git a/llvm/tools/llvm-dwp/llvm-dwp.cpp b/llvm/tools/llvm-dwp/llvm-dwp.cpp index b68ba437f83..f67ecbf3437 100644 --- a/llvm/tools/llvm-dwp/llvm-dwp.cpp +++ b/llvm/tools/llvm-dwp/llvm-dwp.cpp @@ -139,6 +139,7 @@ static std::error_code write(MCStreamer &Out, ArrayRef Inputs) { {"debug_str_offsets.dwo", {StrOffsetSection, DW_SECT_STR_OFFSETS}}, {"debug_str.dwo", {StrSection, static_cast(0)}}, {"debug_loc.dwo", {MCOFI.getDwarfLocDWOSection(), DW_SECT_LOC}}, + {"debug_line.dwo", {MCOFI.getDwarfLineDWOSection(), DW_SECT_LINE}}, {"debug_abbrev.dwo", {MCOFI.getDwarfAbbrevDWOSection(), DW_SECT_ABBREV}}}; struct UnitIndexEntry { -- cgit v1.2.3