labath added a reviewer: aprantl.
labath added a comment.

I don't think a name like `DWARFUnitDIE` is a good one bacause it would make a 
weird `is-a` relationship (a DWARFDIE represetning a DW_TAG_variable is 
certainly **not** a "unit DIE" yet you could assign it to a  `DWARFUnitDIE&`). 
We could have a DWARFUnitDIE type if we wanted to, but that would have to be a 
special type in addition to DWARFBasicDIE. However, I think that would be 
overkill.

That said, if everyone who is going to be calling `IsStructOrClass` and friends 
will see the type as `DWARFDIE` then keeping those methods on that class makes 
sense.


https://reviews.llvm.org/D47275



_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to