[all-commits] [llvm/llvm-project] ab9a17: [BOLT][DWARF] Fix TU Index handling for DWARF4/5

Alexander Yermolovich via All-commits all-commits at lists.llvm.org
Wed Jun 1 18:16:54 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ab9a17599021a4459e23e3a1d7aa57e9413baab5
      https://github.com/llvm/llvm-project/commit/ab9a17599021a4459e23e3a1d7aa57e9413baab5
  Author: Alexander Yermolovich <ayermolo at fb.com>
  Date:   2022-06-01 (Wed, 01 Jun 2022)

  Changed paths:
    M bolt/include/bolt/Rewrite/DWARFRewriter.h
    M bolt/lib/Rewrite/DWARFRewriter.cpp
    M bolt/test/CMakeLists.txt
    A bolt/test/X86/Inputs/dwarf4-ftypes-split-dwarf.s
    A bolt/test/X86/Inputs/dwarf5-ftypes-split-dwarf.s
    A bolt/test/X86/dwarf4-ftypes-dwo-input-dwp-output.test
    A bolt/test/X86/dwarf4-ftypes-dwp-input-dwo-output.test
    A bolt/test/X86/dwarf4-ftypes-dwp-input-dwp-output.test
    A bolt/test/X86/dwarf5-ftypes-dwp-input-dwo-output.test
    M bolt/test/lit.cfg.py

  Log Message:
  -----------
  [BOLT][DWARF] Fix TU Index handling for DWARF4/5

When we generate split dwarf with -fdebug-types-section we will have
.debug_types.dwo sections. These go into TU Index when we run llvm-dwp. BOLT was
not handling DWP input correctly with this section.

Added support for handling DWP with TU Index as an input and output for DWARF4.
Added support for handling DWP with TU Index as an input for DWARF5

Reviewed By: maksfb

Differential Revision: https://reviews.llvm.org/D126087




More information about the All-commits mailing list