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

David Blaikie via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 30 13:58:00 PDT 2023


================
@@ -124,6 +139,11 @@ class DwarfFile {
   /// Add a unit to the list of CUs.
   void addUnit(std::unique_ptr<DwarfCompileUnit> U);
 
+  /// Add a unit to the list of TUs.
+  /// Preserves type unit so that memory is not released before DWARF5
+  /// accelerator table is created.
----------------
dwblaikie wrote:

This comment doesn't seem quite accurate - it doesn't preserve any memory, right? It only saves an MCSymbol that can be used to reference a previously emitted type unit, right?

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


More information about the llvm-commits mailing list