mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-26 23:24:34 +00:00
Revert rearrangement of debug info sections to unblock the bots
and O0 + debug codegen. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@168680 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -903,66 +903,11 @@ void DwarfDebug::endModule() {
|
|||||||
// Emit initial sections.
|
// Emit initial sections.
|
||||||
emitSectionLabels();
|
emitSectionLabels();
|
||||||
|
|
||||||
if (!useDwarfFission()) {
|
// Emit all the DIEs into a debug info section
|
||||||
// Emit all the DIEs into a debug info section.
|
emitDebugInfo();
|
||||||
emitDebugInfo();
|
|
||||||
|
|
||||||
// Corresponding abbreviations into a abbrev section.
|
// Corresponding abbreviations into a abbrev section.
|
||||||
emitAbbreviations();
|
emitAbbreviations();
|
||||||
|
|
||||||
// Emit info into a debug loc section.
|
|
||||||
emitDebugLoc();
|
|
||||||
|
|
||||||
// Emit info into a debug aranges section.
|
|
||||||
emitDebugARanges();
|
|
||||||
|
|
||||||
// Emit info into a debug ranges section.
|
|
||||||
emitDebugRanges();
|
|
||||||
|
|
||||||
// Emit info into a debug macinfo section.
|
|
||||||
emitDebugMacInfo();
|
|
||||||
|
|
||||||
// Emit inline info.
|
|
||||||
// TODO: When we don't need the option anymore we
|
|
||||||
// can remove all of the code that this section
|
|
||||||
// depends upon.
|
|
||||||
if (useDarwinGDBCompat())
|
|
||||||
emitDebugInlineInfo();
|
|
||||||
|
|
||||||
// Emit info into a debug str section.
|
|
||||||
emitDebugStr();
|
|
||||||
} else {
|
|
||||||
// TODO: Fill this in for Fission sections and separate
|
|
||||||
// out information into new sections.
|
|
||||||
|
|
||||||
// Emit all the DIEs into a debug info section.
|
|
||||||
emitDebugInfo();
|
|
||||||
|
|
||||||
// Corresponding abbreviations into a abbrev section.
|
|
||||||
emitAbbreviations();
|
|
||||||
|
|
||||||
// Emit info into a debug loc section.
|
|
||||||
emitDebugLoc();
|
|
||||||
|
|
||||||
// Emit info into a debug aranges section.
|
|
||||||
emitDebugARanges();
|
|
||||||
|
|
||||||
// Emit info into a debug ranges section.
|
|
||||||
emitDebugRanges();
|
|
||||||
|
|
||||||
// Emit info into a debug macinfo section.
|
|
||||||
emitDebugMacInfo();
|
|
||||||
|
|
||||||
// Emit inline info.
|
|
||||||
// TODO: When we don't need the option anymore we
|
|
||||||
// can remove all of the code that this section
|
|
||||||
// depends upon.
|
|
||||||
if (useDarwinGDBCompat())
|
|
||||||
emitDebugInlineInfo();
|
|
||||||
|
|
||||||
// Emit info into a debug str section.
|
|
||||||
emitDebugStr();
|
|
||||||
}
|
|
||||||
|
|
||||||
// Emit info into the dwarf accelerator table sections.
|
// Emit info into the dwarf accelerator table sections.
|
||||||
if (useDwarfAccelTables()) {
|
if (useDwarfAccelTables()) {
|
||||||
@ -978,6 +923,28 @@ void DwarfDebug::endModule() {
|
|||||||
if (useDarwinGDBCompat())
|
if (useDarwinGDBCompat())
|
||||||
emitDebugPubTypes();
|
emitDebugPubTypes();
|
||||||
|
|
||||||
|
// Emit info into a debug loc section.
|
||||||
|
emitDebugLoc();
|
||||||
|
|
||||||
|
// Emit info into a debug aranges section.
|
||||||
|
emitDebugARanges();
|
||||||
|
|
||||||
|
// Emit info into a debug ranges section.
|
||||||
|
emitDebugRanges();
|
||||||
|
|
||||||
|
// Emit info into a debug macinfo section.
|
||||||
|
emitDebugMacInfo();
|
||||||
|
|
||||||
|
// Emit inline info.
|
||||||
|
// TODO: When we don't need the option anymore we
|
||||||
|
// can remove all of the code that this section
|
||||||
|
// depends upon.
|
||||||
|
if (useDarwinGDBCompat())
|
||||||
|
emitDebugInlineInfo();
|
||||||
|
|
||||||
|
// Emit info into a debug str section.
|
||||||
|
emitDebugStr();
|
||||||
|
|
||||||
// clean up.
|
// clean up.
|
||||||
SPMap.clear();
|
SPMap.clear();
|
||||||
for (DenseMap<const MDNode *, CompileUnit *>::iterator I = CUMap.begin(),
|
for (DenseMap<const MDNode *, CompileUnit *>::iterator I = CUMap.begin(),
|
||||||
|
Reference in New Issue
Block a user