[Lldb-commits] [PATCH] D53662: Give the SymbolFile plugin enough information to efficiently do exact match lookups

Zachary Turner via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Mon Oct 29 17:47:41 PDT 2018

zturner added a comment.

In https://reviews.llvm.org/D53662#1279777, @jingham wrote:

> Yes, that usage is exactly the sort of use I was talking about.  When we get an ObjC object and want to find its dynamic type, we read the type name by following the object's ISA pointer to the Class object.  Then we go to look up the type from that name.  We know we want an exact match to the name we found, but there's nothing that says the same module can't have an C++ class with the same name as an ObjC class.  So that code needs to get all the types found, and sort through them for the one that is an ObjC interface type, and discard all the others.  You will need to support that behavior somehow.

So just to make sure I understand, The C++ and ObjC classes are both potentially in the same Module, both potentially with the same name, correct?


More information about the lldb-commits mailing list