[PATCH] D118997: [DebugInfo] Fix emitting .debug_names with -dwarf-sections-as-reference=Enable
Igor Kudrin via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Feb 4 07:30:18 PST 2022
ikudrin created this revision.
ikudrin added reviewers: JDevlieghere, labath, ABataev, jhenderson, echristo.
ikudrin added projects: LLVM, debug-info.
Herald added subscribers: ormris, hiraditya.
ikudrin requested review of this revision.
If `UseSectionsAsReferences == true`, `DwarfCompileUnit` do not define a separate label at the beginning of the unit and `getLabelBegin()` cannot be used. To reference the CU, the section symbol and the offset in the debug info section should be used instead.
This fixes a crash in `llvm/test/DebugInfo/Generic/2010-04-19-FramePtr.ll` when NVPTX is set as a default target.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D118997
Files:
llvm/lib/CodeGen/AsmPrinter/AccelTable.cpp
llvm/test/DebugInfo/X86/sections-as-references-dwarf5-accel-tables.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D118997.405961.patch
Type: text/x-patch
Size: 5380 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220204/35f5abc5/attachment.bin>
More information about the llvm-commits
mailing list