Michael137 wrote:

> It's not that hard to compute "no-data": non-RecordDecls are never no-data, 
> RecordDecls are no-data if they don't have a vtable pointer 
> (isDynamicClass()), and all fields are no-data. We can save it in the 
> CGRecordLayout.
> 
> Assuming that's the route we want to go, of course, as opposed to just making 
> LLDB add no_unique_address markings to fields.

Turns out there's `CodeGen::isEmptyField` which seems usable for this purpose. 
Created a draft PR here: https://github.com/llvm/llvm-project/pull/96422 for now

https://github.com/llvm/llvm-project/pull/93809
_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to