[PATCH] D45040: [DebugInfo] Construct DWARF-specific data for labels in DwarfDebug.

Hsiangkai Wang via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Mar 29 07:17:09 PDT 2018


HsiangKai created this revision.
HsiangKai added reviewers: rnk, chenwj.
Herald added subscribers: JDevlieghere, aprantl.

Construct class DbgLabel to record DWARF-specific data for labels in
DwarfDebug. It contains DILabel metadata, MCSymbol before DBG_LABEL MI,
and a pointer to DIE data structure. MCSymbol is used to query the
address of the label to generate DW_AT_low_pc attribute of DW_TAG_label.

DwarfDebug::collectLabelInfo() will convert the mappings of DILabel to
(DILocation, MachineInstr) in DebugHandlerBase to mappings of scope to
DbgLabels.


Repository:
  rL LLVM

https://reviews.llvm.org/D45040

Files:
  lib/CodeGen/AsmPrinter/DwarfDebug.cpp
  lib/CodeGen/AsmPrinter/DwarfDebug.h
  lib/CodeGen/AsmPrinter/DwarfFile.cpp
  lib/CodeGen/AsmPrinter/DwarfFile.h

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D45040.140242.patch
Type: text/x-patch
Size: 6795 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180329/ae000122/attachment.bin>


More information about the llvm-commits mailing list