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

Devang Patel dpatel at apple.com
Tue Nov 24 11:18:41 PST 2009


Author: dpatel
Date: Tue Nov 24 13:18:41 2009
New Revision: 89787

URL: http://llvm.org/viewvc/llvm-project?rev=89787&view=rev
Log:
Swith to pubtypes section before emitting pub types.

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=89787&r1=89786&r2=89787&view=diff

==============================================================================
--- llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp (original)
+++ llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp Tue Nov 24 13:18:41 2009
@@ -2717,6 +2717,9 @@
 }
 
 void DwarfDebug::emitDebugPubTypes() {
+  // Start the dwarf pubnames section.
+  Asm->OutStreamer.SwitchSection(
+                          Asm->getObjFileLowering().getDwarfPubTypesSection());
   EmitDifference("pubtypes_end", ModuleCU->getID(),
                  "pubtypes_begin", ModuleCU->getID(), true);
   Asm->EOL("Length of Public Types Info");





More information about the llvm-commits mailing list