[llvm-commits] [llvm] r168680 - /llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp

Eric Christopher echristo at gmail.com
Mon Nov 26 22:49:23 PST 2012


Author: echristo
Date: Tue Nov 27 00:49:23 2012
New Revision: 168680

URL: http://llvm.org/viewvc/llvm-project?rev=168680&view=rev
Log:
Revert rearrangement of debug info sections to unblock the bots
and O0 + debug codegen.

Modified:
    llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp

Modified: llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp?rev=168680&r1=168679&r2=168680&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp (original)
+++ llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp Tue Nov 27 00:49:23 2012
@@ -903,66 +903,11 @@
   // 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 @@
   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(),





More information about the llvm-commits mailing list