Re: [Dwarf-Discuss] How to map [[no_unique_address]] into DWARF

2021-06-07 Thread Jan Kratochvil via Dwarf-Discuss
On Mon, 07 Jun 2021 20:27:39 +0200, David Blaikie via Dwarf-Discuss wrote: > Ah, in the sense that you want to be able to derive new types based on > the DWARF? > Fair enough. The real reason is that when using the derived class C LLDB+LLVM layout engine will assert because FieldOffsets from

Re: [Dwarf-Discuss] How to map [[no_unique_address]] into DWARF

2021-06-07 Thread David Blaikie via Dwarf-Discuss
Ah, in the sense that you want to be able to derive new types based on the DWARF? Fair enough. Raphael's suggestion seems reasonable to me. On Mon, Jun 7, 2021 at 11:20 AM Jan Kratochvil wrote: > > On Mon, 07 Jun 2021 20:11:16 +0200, David Blaikie via Dwarf-Discuss wrote: > > On Mon, Jun 7,

Re: [Dwarf-Discuss] How to map [[no_unique_address]] into DWARF

2021-06-07 Thread Jan Kratochvil via Dwarf-Discuss
On Mon, 07 Jun 2021 20:11:16 +0200, David Blaikie via Dwarf-Discuss wrote: > On Mon, Jun 7, 2021 at 10:58 AM Jan Kratochvil via Dwarf-Discuss > wrote: > > > > clang-12 will create the same DWARF for class B with [[no_unique_address]] > > either present or not. Despite that class C derived from B

Re: [Dwarf-Discuss] How to map [[no_unique_address]] into DWARF

2021-06-07 Thread David Blaikie via Dwarf-Discuss
On Mon, Jun 7, 2021 at 10:58 AM Jan Kratochvil via Dwarf-Discuss wrote: > > Hi, > > clang-12 will create the same DWARF for class B with [[no_unique_address]] > either present or not. Despite that class C derived from B has different > layout depending on from which class B it gets derived Why

[Dwarf-Discuss] How to map [[no_unique_address]] into DWARF

2021-06-07 Thread Jan Kratochvil via Dwarf-Discuss
Hi, clang-12 will create the same DWARF for class B with [[no_unique_address]] either present or not. Despite that class C derived from B has different layout depending on from which class B it gets derived: -- struct A