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

David Blaikie via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 1 17:06:28 PDT 2023


================
@@ -385,6 +394,13 @@ class DwarfTypeUnit final : public DwarfUnit {
   void addGlobalType(const DIType *Ty, const DIE &Die,
                      const DIScope *Context) override;
   DwarfCompileUnit &getCU() override { return CU; }
+  /// Get the the symbol for start of the section for this type unit.
+  MCSymbol *getLabelBegin() const {
+    assert(LabelBegin && "LabelBegin is not initialized");
+    return LabelBegin;
+  }
+
+  unsigned getUniqueID() const override { return UniqueID; }
----------------
dwblaikie wrote:

Could this be moved up to the DwarfUnit type? (does the CU have these features too? Then it might as well be shared in the base class?)

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


More information about the llvm-commits mailing list