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

Eric Christopher echristo at gmail.com
Mon Nov 19 11:43:59 PST 2012


Author: echristo
Date: Mon Nov 19 13:43:59 2012
New Revision: 168321

URL: http://llvm.org/viewvc/llvm-project?rev=168321&view=rev
Log:
Move section label emission to module end. Nothing should be
depending on them being emitted before the text and/or data
sections and testing didn't uncover any.

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=168321&r1=168320&r2=168321&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp (original)
+++ llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp Mon Nov 19 13:43:59 2012
@@ -791,9 +791,6 @@
   // Tell MMI that we have debug info.
   MMI->setDebugInfoAvailability(true);
   
-  // Emit initial sections.
-  EmitSectionLabels();
-
   // Prime section data.
   SectionMap.insert(Asm->getObjFileLowering().getTextSection());
 }
@@ -876,6 +873,9 @@
   // Compute DIE offsets and sizes.
   computeSizeAndOffsets();
 
+  // Emit initial sections.
+  EmitSectionLabels();
+
   // Emit all the DIEs into a debug info section
   emitDebugInfo();
 





More information about the llvm-commits mailing list