[llvm] Introduce DwarfUnit::addBlock helper method (PR #168446)

Michael Buch via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 17 13:46:32 PST 2025


================
@@ -824,27 +832,14 @@ void DwarfUnit::constructTypeDIE(DIE &Buffer, const DIStringType *STy) {
     if (auto *VarDIE = getDIE(Var))
       addDIEEntry(Buffer, dwarf::DW_AT_string_length, *VarDIE);
   } else if (DIExpression *Expr = STy->getStringLengthExp()) {
-    DIELoc *Loc = new (DIEValueAllocator) DIELoc;
-    DIEDwarfExpression DwarfExpr(*Asm, getCU(), *Loc);
-    // This is to describe the memory location of the
----------------
Michael137 wrote:

Do we want to keep this comments? Not sure they are still relevant though

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


More information about the llvm-commits mailing list