This is an archive of the discontinued LLVM Phabricator instance.

[DebugInfo] Prepare debug information of labels in DebugHandlerBase.
AbandonedPublic

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

Details

Reviewers
rnk
chenwj
Summary

DebugHandlerBase is a child class of AsmPrinterHandler. It is the parent
class of DwarfDebug and CodeViewDebug, it depends on which debug format
you want to generate. DwarfDebug will generate DWARF format debug info
through AsmPrinter.

Before DwarfDebug generate DWARF format finally, DebugHandlerBase need to
collect label information from MI listing first. This patch collects
mappings of DILabel to (DILocation, MachineInstr) from DBG_LABEL MI.
We record DBG_LABEL MI in the mapping due to the MCSymbol is not ready as
collecting the mappings in DebugHandlerBase::beginFunction().

Diff Detail

Repository
rL LLVM