[Lldb-commits] [lldb] [lldb] Better matching of types in anonymous namespaces (PR #102111)
Pavel Labath via lldb-commits
lldb-commits at lists.llvm.org
Thu Aug 8 03:08:49 PDT 2024
================
@@ -440,12 +440,6 @@ static void GetTypeLookupContextImpl(DWARFDIE die,
continue;
}
- // If there is no name, then there is no need to look anything up for this
- // DIE.
- const char *name = die.GetName();
- if (!name || !name[0])
- return;
-
----------------
labath wrote:
unnamed structs cannot contain [named structs](https://godbolt.org/z/sEfdMEvsz), so the only place these can appear is at the top (bottom?) level. We don't currently have a way to look them up from our APIs taking strings (we'd need something like an `(anonymous struct)`), but they could be looked up internally by code which constructs CompilerContexts directly. So yeah, I think including them here is the right choice for this function.
https://github.com/llvm/llvm-project/pull/102111
More information about the lldb-commits
mailing list