[[PATCH V9] 1/7] dwarf: add a dwarf2int.h internal interface
Jason Merrill
jason@redhat.com
Thu Jun 24 14:41:44 GMT 2021
On 6/24/21 9:52 AM, Jose E. Marchesi wrote:
>> On 5/31/21 12:57 PM, Jose E. Marchesi via Gcc-patches wrote:
>>> This patch introduces a dwarf2int.h header, to be used by code that
>>> needs access to the internal DIE structures and their attributes.
>>
>> Why not put these bits in dwarf2out.h?
>
> We think that it makes sense to have a separated interface file for the
> implementation of DWARF-based debug formats. It is called `internal'
> because it provides access to internal data structures as well as the
> basic accessor functions to the internals of the DWARF DIEs.
Yes, but "internal data structures" also describes most of the current
dwarf2out.h. I'm not opposed to refactoring the header, but splitting
off a dwarf2cfi.h (for print-rtl.c and final.c) seems like a better
dividing line.
Jason
More information about the Gcc-patches
mailing list