[PATCH] D143561: [DwarfGenerator] Emit dwarf address section when dwarf version is not less than 4

Kai Luo via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Feb 9 19:18:26 PST 2023


This revision was automatically updated to reflect the committed changes.
Closed by commit rG311ff227b432: [DwarfGenerator] Emit dwarf address section when dwarf version is not less than… (authored by lkail).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D143561/new/

https://reviews.llvm.org/D143561

Files:
  llvm/unittests/DebugInfo/DWARF/DwarfGenerator.cpp


Index: llvm/unittests/DebugInfo/DWARF/DwarfGenerator.cpp
===================================================================
--- llvm/unittests/DebugInfo/DWARF/DwarfGenerator.cpp
+++ llvm/unittests/DebugInfo/DWARF/DwarfGenerator.cpp
@@ -582,7 +582,8 @@
   StringPool->emit(*Asm, TLOF->getDwarfStrSection(),
                    TLOF->getDwarfStrOffSection());
 
-  AddressPool.emit(*Asm, TLOF->getDwarfAddrSection(), AddrTableStartSym);
+  if (Asm->getDwarfVersion() >= 5)
+    AddressPool.emit(*Asm, TLOF->getDwarfAddrSection(), AddrTableStartSym);
 
   MS->switchSection(TLOF->getDwarfInfoSection());
   for (auto &CU : CompileUnits) {


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D143561.496314.patch
Type: text/x-patch
Size: 637 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230210/d05a9456/attachment.bin>


More information about the llvm-commits mailing list