[PATCH] D126087: [BOLT][DWARF] Fix TU Index handling for DWARF4/5.

Alexander Yermolovich via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri May 20 12:56:04 PDT 2022


ayermolo created this revision.
Herald added subscribers: hoy, modimo, wenlei, arphaman, mgrang.
Herald added a reviewer: rafauler.
Herald added a reviewer: Amir.
Herald added a reviewer: maksfb.
Herald added a project: All.
ayermolo requested review of this revision.
Herald added a reviewer: jdoerfert.
Herald added subscribers: llvm-commits, yota9, sstefan1.
Herald added a project: LLVM.

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 it when DWP output or DWP is output for DWARF4. For
DWARF5 it just handles it as an input for now.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D126087

Files:
  bolt/include/bolt/Rewrite/DWARFRewriter.h
  bolt/lib/Rewrite/DWARFRewriter.cpp
  bolt/test/X86/Inputs/dwarf4-ftypes-split-dwarf.s
  bolt/test/X86/Inputs/dwarf5-ftypes-split-dwarf.s
  bolt/test/X86/dwarf4-ftypes-dwo-input-dwp-output.test
  bolt/test/X86/dwarf4-ftypes-dwp-input-dwo-output.test
  bolt/test/X86/dwarf4-ftypes-dwp-input-dwp-output.test
  bolt/test/X86/dwarf5-ftypes-dwp-input-dwo-output.test
  bolt/test/lit.cfg.py

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D126087.431033.patch
Type: text/x-patch
Size: 77338 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220520/309ccaa2/attachment.bin>


More information about the llvm-commits mailing list