[Lldb-commits] [lldb] [lldb][DWARF] Fix adding children to clang type that hasn't started definition. (PR #93839)

Michael Buch via lldb-commits lldb-commits at lists.llvm.org
Thu May 30 09:22:18 PDT 2024


================
@@ -13,12 +13,18 @@
 using namespace lldb_private::dwarf;
 using namespace lldb_private::plugin::dwarf;
 
+static bool IsStructOrClassTag(llvm::dwarf::Tag Tag) {
----------------
Michael137 wrote:

Are there more tag equality checks around LLDB that could benefit from re-using the following check:
```
udt.m_die.Tag() == die.Tag() || (IsStructOrClassTag(udt.m_die.Tag()) &&
                                         IsStructOrClassTag(die.Tag()))
```

There's at least two now. Not sure where we'd put such an API. Perhaps @felipepiovezan or @adrian-prantl have some input on this.

https://github.com/llvm/llvm-project/pull/93839


More information about the lldb-commits mailing list