[lldb] [llvm] Add support for using foreign type units in .debug_names. (PR #87740)

Alex Langford via llvm-commits llvm-commits at lists.llvm.org
Fri Apr 5 14:24:16 PDT 2024


================
@@ -273,6 +301,44 @@ void DebugNamesDWARFIndex::GetFullyQualifiedType(
     if (!isType(entry.tag()))
       continue;
 
+
+    DWARFTypeUnit *foreign_tu = GetForeignTypeUnit(entry);
+    if (foreign_tu) {
----------------
bulbazord wrote:

nit: Merge these two lines
```
if (DWARFTypeUnit *foreign_tu = GetForeignTypeUnit(entry)) {
```

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


More information about the llvm-commits mailing list