[llvm] [LLVM][DWARF] Add support for monolithic types in .debug_names (PR #68131)
    Alexander Yermolovich via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Fri Oct  6 13:04:41 PDT 2023
    
    
  
================
@@ -3514,11 +3520,15 @@ void DwarfDebug::addDwarfTypeUnitType(DwarfCompileUnit &CU,
       return;
     }
 
-    // If the type wasn't dependent on fission addresses, finish adding the type
-    // and all its dependent types.
     for (auto &TU : TypeUnitsToAdd) {
       InfoHolder.computeSizeAndOffsetsForUnit(TU.first.get());
       InfoHolder.emitUnit(TU.first.get(), useSplitDwarf());
+      if (getDwarfVersion() >= 5 &&
+          getAccelTableKind() == AccelTableKind::Dwarf) {
+        addTypeUnit(std::move(TU.first));
----------------
ayermolo wrote:
[response.txt](https://github.com/llvm/llvm-project/files/12835121/response.txt)
[Sema-7c717f.cpp.txt](https://github.com/llvm/llvm-project/files/12835125/Sema-7c717f.cpp.txt)
[Sema-7c717f.sh.txt](https://github.com/llvm/llvm-project/files/12835132/Sema-7c717f.sh.txt)
https://github.com/llvm/llvm-project/pull/68131
    
    
More information about the llvm-commits
mailing list