Some DIEs, like for static variables, get added to concrete DIEs for
inlined functions instead of their abstract origin DIEs. At the end of
the module, we fixup these cases by moving appropriate child DIEs from
the concrete DIE to the abstract origin DIE and adding the
DW_AT_abstract_origin attribute.
Add the API releaseNodes() to DIEs so that we can remove all the
children from a DIE.
This diff was discussed in llvm-dev.
https://groups.google.com/g/llvm-dev/c/mlNUyj-Q5To/m/GLq2zWw1AAAJ
Fixes