This is an archive of the discontinued LLVM Phabricator instance.

[DebugInfo] Construct DWARF-specific data for labels in DwarfDebug.
AbandonedPublic

Authored by HsiangKai on Mar 29 2018, 7:16 AM.

Details

Reviewers
rnk
chenwj
Summary

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.

Diff Detail

Repository
rL LLVM