[all-commits] [llvm/llvm-project] 595b16: [llvm-dwp] Skip type unit debug info sections
Kim-Anh via All-commits
all-commits at lists.llvm.org
Wed Jun 2 12:01:18 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 595b1683b79be089c3f72e7b3dcee4d1a9f6327b
https://github.com/llvm/llvm-project/commit/595b1683b79be089c3f72e7b3dcee4d1a9f6327b
Author: Kim-Anh Tran <kimanh at chromium.org>
Date: 2021-06-02 (Wed, 02 Jun 2021)
Changed paths:
A llvm/test/tools/llvm-dwp/X86/cu_and_tu_info_section_v5.s
M llvm/test/tools/llvm-dwp/X86/invalid_cu_header_length.s
A llvm/test/tools/llvm-dwp/X86/invalid_tu_header_length.s
A llvm/test/tools/llvm-dwp/X86/multiple_debug_info_sections_in_dwp.s
A llvm/test/tools/llvm-dwp/X86/no_cu_found.s
A llvm/test/tools/llvm-dwp/X86/wrong-unit-type-info-v4.s
R llvm/test/tools/llvm-dwp/X86/wrong-unit-type-info-v5.s
M llvm/tools/llvm-dwp/llvm-dwp.cpp
Log Message:
-----------
[llvm-dwp] Skip type unit debug info sections
This patch makes llvm-dwp skip debug info sections that may not be encoding a compile unit.
In DWARF5, debug info sections are also used for type units. As in preparation to support type units,
make llvm-dwp aware of other uses of debug info sections but skip them for now.
The patch first records all .debug_info sections, then goes through them one by one and records
the cu debug info section for writing the index unit, and copies that section to the final dwp output
info section. If it's not a compile unit, skip.
Reviewed By: dblaikie
Differential Revision: https://reviews.llvm.org/D102312
More information about the All-commits
mailing list