[llvm] [LLVM][DWARF] Add support for monolithic types in .debug_names (PR #70515)

David Blaikie via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 14 11:53:18 PST 2023


================
@@ -358,8 +359,10 @@ void AppleAccelTableWriter::emit() const {
 }
 
 DWARF5AccelTableData::DWARF5AccelTableData(const DIE &Die,
-                                           const DwarfCompileUnit &CU)
-    : OffsetVal(&Die), DieTag(Die.getTag()), UnitID(CU.getUniqueID()) {}
+                                           const DwarfUnit &Unit,
+                                           const bool IsTU)
+    : OffsetVal(&Die), DieTag(Die.getTag()), UnitID(Unit.getUniqueID()),
+      IsTU(IsTU) {}
----------------
dwblaikie wrote:

Ah, sorry, used the wrong term - /delegating/ ctor was what I was thinking of. This ctor could call the other "init all the members" ctor, rather than initing them directly itself. It's much of a muchness though, since they don't do anything als that interesting anyway.

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


More information about the llvm-commits mailing list