[BOLT][DWARF] Support mix mode DWARF
authorAlexander Yermolovich <ayermolo@fb.com>
Thu, 30 Jun 2022 23:50:49 +0000 (16:50 -0700)
committerAlexander Yermolovich <ayermolo@fb.com>
Thu, 30 Jun 2022 23:53:15 +0000 (16:53 -0700)
commite159abdb04000e6f2ed32d9d853100aa6cb55224
treee15a013b979102f4e1c009bee128ce40842ed363
parentef0b20d8e8db849062ee48c1cf9127e1f9c7df44
[BOLT][DWARF] Support mix mode DWARF

Added support for mixing monolithic DWARF5 with legacy DWARF, and monolithic legacy and DWARF5 split dwarf.

Reviewed By: maksfb

Differential Revision: https://reviews.llvm.org/D128232
bolt/include/bolt/Rewrite/DWARFRewriter.h
bolt/lib/Core/BinaryContext.cpp
bolt/lib/Rewrite/DWARFRewriter.cpp
bolt/test/X86/Inputs/dwarf5-dwarf4-monolithic-helper0.s [new file with mode: 0644]
bolt/test/X86/Inputs/dwarf5-dwarf4-monolithic-helper1.s [new file with mode: 0644]
bolt/test/X86/Inputs/dwarf5-dwarf4-monolithic-helper2.s [new file with mode: 0644]
bolt/test/X86/Inputs/dwarf5-dwarf4-monolithic-main.s [new file with mode: 0644]
bolt/test/X86/Inputs/dwarf5-split-dwarf4-monolithic-helper1.s [new file with mode: 0644]
bolt/test/X86/Inputs/dwarf5-split-dwarf4-monolithic-main.s [new file with mode: 0644]
bolt/test/X86/dwarf5-dwarf4-monolithic.test [new file with mode: 0644]
bolt/test/X86/dwarf5-split-dwarf4-monolithic.test [new file with mode: 0644]