The convert only worked on CUs in main binary.
If it's a skeleton CU it will now use the DWO CU
when invoking handleDie.
Test Plan:
llvm-lit
Differential D118521
[GSYM] Add Split Dwarf Support to DwarfTransformer ayermolo on Jan 28 2022, 5:34 PM. Authored by
Details
The convert only worked on CUs in main binary. Test Plan:
Diff Detail
Event TimelineComment Actions I can help come up with a test for this before we commit it.
Comment Actions So we need a test for this. All we need to do is to create a .o file with .dwo sections inlined into it and then test that we can successfully run llvm-gsymutil on it. So if we can get a .o file with .dwo inlined, then we run obj2yaml and verify that yaml2obj successfully reconstructs the .o file intact (hoping that obj2yaml handles all DWARF sections including the ones for .dwo), then we can make a test case very similar to this one: llvm/test/tools/llvm-gsymutil/X86/elf-dwarf.yaml This test has the yaml inlined into it and then runs FileCheck on the resulting llvm-gsymutil invocations. |
clang-format: please reformat the code