Skip to content

Commit

Permalink
Reorder section output ordering.
Browse files Browse the repository at this point in the history
llvm-svn: 168638
  • Loading branch information
echristo committed Nov 27, 2012
1 parent 735401c commit c800b12
Showing 1 changed file with 27 additions and 25 deletions.
52 changes: 27 additions & 25 deletions llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -904,10 +904,34 @@ void DwarfDebug::endModule() {
emitSectionLabels();

// Emit all the DIEs into a debug info section
emitDebugInfo();
if (!useDwarfFission()) {
emitDebugInfo();

// Corresponding abbreviations into a abbrev section.
emitAbbreviations();
// 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.
if (useDwarfAccelTables()) {
Expand All @@ -923,28 +947,6 @@ void DwarfDebug::endModule() {
if (useDarwinGDBCompat())
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.
SPMap.clear();
for (DenseMap<const MDNode *, CompileUnit *>::iterator I = CUMap.begin(),
Expand Down

0 comments on commit c800b12

Please sign in to comment.