mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-20 16:17:38 +00:00
simplify macro debug info directive handling.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73736 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -1995,8 +1995,8 @@ void DwarfDebug::EmitInitial() {
|
||||
Asm->SwitchToDataSection(TAI->getDwarfARangesSection());
|
||||
EmitLabel("section_aranges", 0);
|
||||
|
||||
if (TAI->doesSupportMacInfoSection()) {
|
||||
Asm->SwitchToDataSection(TAI->getDwarfMacInfoSection());
|
||||
if (const char *LineInfoDirective = TAI->getDwarfMacroInfoSection()) {
|
||||
Asm->SwitchToDataSection(LineInfoDirective);
|
||||
EmitLabel("section_macinfo", 0);
|
||||
}
|
||||
|
||||
@@ -2542,9 +2542,9 @@ void DwarfDebug::EmitDebugRanges() {
|
||||
/// EmitDebugMacInfo - Emit visible names into a debug macinfo section.
|
||||
///
|
||||
void DwarfDebug::EmitDebugMacInfo() {
|
||||
if (TAI->doesSupportMacInfoSection()) {
|
||||
if (const char *LineInfoDirective = TAI->getDwarfMacroInfoSection()) {
|
||||
// Start the dwarf macinfo section.
|
||||
Asm->SwitchToDataSection(TAI->getDwarfMacInfoSection());
|
||||
Asm->SwitchToDataSection(LineInfoDirective);
|
||||
Asm->EOL();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user