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().