[BOLT][DWARF] Fix assert for split dwarf.
authorAlexander Yermolovich <ayermolo@fb.com>
Sun, 8 May 2022 00:56:48 +0000 (17:56 -0700)
committerAlexander Yermolovich <ayermolo@fb.com>
Mon, 9 May 2022 02:18:17 +0000 (19:18 -0700)
commit3abb68a626160e019c30a4860e569d7bc75e486a
treee821cde55275d04acc81b0f115ca16f255bf606b
parent9a12138b5fd8c807c3b95144236c07dfc323974f
[BOLT][DWARF] Fix assert for split dwarf.

Fixing a small bug where it would assert if CU does not modify .debug_addr section.

Differential Revision: https://reviews.llvm.org/D125181
bolt/lib/Core/DebugData.cpp
bolt/lib/Rewrite/DWARFRewriter.cpp
bolt/test/X86/Inputs/dwarf4-split-dwarf-no-address-helper.s [new file with mode: 0644]
bolt/test/X86/Inputs/dwarf4-split-dwarf-no-address-main.s [new file with mode: 0644]
bolt/test/X86/dwarf4-split-dwarf-no-address.test [new file with mode: 0644]