diff options
| author | Eric Christopher <echristo@gmail.com> | 2012-11-27 00:13:58 +0000 |
|---|---|---|
| committer | Eric Christopher <echristo@gmail.com> | 2012-11-27 00:13:58 +0000 |
| commit | c800b12baed9d98865ba28ff581eed350a594255 (patch) | |
| tree | 889817645f87f0e45f7caee277dbaf3906d0276d /llvm/lib | |
| parent | 735401cf29e9c531ac1741a5f3c1938da4d0032f (diff) | |
| download | bcm5719-llvm-c800b12baed9d98865ba28ff581eed350a594255.tar.gz bcm5719-llvm-c800b12baed9d98865ba28ff581eed350a594255.zip | |
Reorder section output ordering.
llvm-svn: 168638
Diffstat (limited to 'llvm/lib')
| -rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp | 52 |
1 files changed, 27 insertions, 25 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp index 97f61e86101..d7733846d1e 100644 --- a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp @@ -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()) { @@ -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(), |

