[DebugInfo] Include DW_TAG_skeleton_unit when looking for parent UnitDie
authorWenlei He <aktoon@gmail.com>
Sat, 26 Feb 2022 07:09:45 +0000 (23:09 -0800)
committerWenlei He <aktoon@gmail.com>
Sat, 12 Mar 2022 21:27:42 +0000 (13:27 -0800)
commit4f320ca4ba15dcf9dda8775f74745aab7d3633a6
treefd188d74fed03dc255db3226a4b6c1e5e3c425f6
parentf18d6af7e972ed0e2215ad098b4c5f52ccb68b5f
[DebugInfo] Include DW_TAG_skeleton_unit when looking for parent UnitDie

`DIE::getUnitDie` looks up parent DIE until compile unit or type unit is found. However for skeleton CU with debug fission, we would have DW_TAG_skeleton_unit instead of DW_TAG_compile_unit as top level DIE.

This change fixes the look up so we can get DW_TAG_skeleton_unit as UnitDie for skeleton CU.

Differential Revision: https://reviews.llvm.org/D120610
llvm/lib/CodeGen/AsmPrinter/DIE.cpp
llvm/test/DebugInfo/X86/fission-template.ll [new file with mode: 0644]