[llvm-profgen] Support symbol loading for debug fission
authorwlei <wlei@fb.com>
Tue, 22 Feb 2022 20:09:01 +0000 (12:09 -0800)
committerwlei <wlei@fb.com>
Wed, 23 Feb 2022 17:40:46 +0000 (09:40 -0800)
commitb3a778fb5eca0e6032f3d62c03a673c2431be8a0
tree4d13b936f464df69c41b8a40ab47f39f61921dcd
parent6eec4835844439ab932515ff4ac857773c639171
[llvm-profgen] Support symbol loading for debug fission

Support to load debug info from dwarf split file, like .dwo, .dwp files. Leverage the `getNonSkeletonUnitDIE(false)` API to achieve this.

Add test cause to make sure all the ranges is well retrieved by the loader.

Reviewed By: ayermolo, hoy, wenlei

Differential Revision: https://reviews.llvm.org/D115973
llvm/test/tools/llvm-profgen/Inputs/split-dwarf-single.exe [new file with mode: 0755]
llvm/test/tools/llvm-profgen/Inputs/split-dwarf-single.o.yaml [new file with mode: 0644]
llvm/test/tools/llvm-profgen/Inputs/split-dwarf-split.dwo.yaml [new file with mode: 0644]
llvm/test/tools/llvm-profgen/Inputs/split-dwarf-split.exe [new file with mode: 0755]
llvm/test/tools/llvm-profgen/split-dwarf.test [new file with mode: 0644]
llvm/tools/llvm-profgen/ProfiledBinary.cpp
llvm/tools/llvm-profgen/ProfiledBinary.h