summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
diff options
context:
space:
mode:
authorEric Christopher <echristo@gmail.com>2012-11-27 06:49:23 +0000
committerEric Christopher <echristo@gmail.com>2012-11-27 06:49:23 +0000
commit6e20a16829d1b3fef120daff57eef59a641b21d4 (patch)
tree21cf2575f44fcd082997545b75bb4c434faaecea /llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
parent5f7c2d80d832ecfed16812bd2117ecd021d095aa (diff)
downloadbcm5719-llvm-6e20a16829d1b3fef120daff57eef59a641b21d4.tar.gz
bcm5719-llvm-6e20a16829d1b3fef120daff57eef59a641b21d4.zip
Revert rearrangement of debug info sections to unblock the bots
and O0 + debug codegen. llvm-svn: 168680
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp85
1 files changed, 26 insertions, 59 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
index ca393c9b961..97f61e86101 100644
--- a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
+++ b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
@@ -903,66 +903,11 @@ void DwarfDebug::endModule() {
// Emit initial sections.
emitSectionLabels();
- if (!useDwarfFission()) {
- // Emit all the DIEs into a debug info section.
- emitDebugInfo();
+ // 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();
- } 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();
- }
+ // Corresponding abbreviations into a abbrev section.
+ emitAbbreviations();
// Emit info into the dwarf accelerator table sections.
if (useDwarfAccelTables()) {
@@ -978,6 +923,28 @@ 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(),
OpenPOWER on IntegriCloud