[llvm-commits] [llvm] r162434 - in /llvm/trunk: lib/CodeGen/AsmPrinter/DwarfDebug.cpp test/DebugInfo/2010-04-13-PubType.ll
Eric Christopher
echristo at apple.com
Thu Aug 23 00:10:56 PDT 2012
Author: echristo
Date: Thu Aug 23 02:10:56 2012
New Revision: 162434
URL: http://llvm.org/viewvc/llvm-project?rev=162434&view=rev
Log:
Emit pubtypes only when going for darwin gdb compatibility.
rdar://10393214
Modified:
llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
llvm/trunk/test/DebugInfo/2010-04-13-PubType.ll
Modified: llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp?rev=162434&r1=162433&r2=162434&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp (original)
+++ llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp Thu Aug 23 02:10:56 2012
@@ -832,7 +832,10 @@
}
// Emit info into a debug pubtypes section.
- emitDebugPubTypes();
+ // TODO: When we don't need the option anymore we can
+ // remove all of the code that adds to the table.
+ if (DarwinGDBCompat)
+ emitDebugPubTypes();
// Emit info into a debug loc section.
emitDebugLoc();
Modified: llvm/trunk/test/DebugInfo/2010-04-13-PubType.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/DebugInfo/2010-04-13-PubType.ll?rev=162434&r1=162433&r2=162434&view=diff
==============================================================================
--- llvm/trunk/test/DebugInfo/2010-04-13-PubType.ll (original)
+++ llvm/trunk/test/DebugInfo/2010-04-13-PubType.ll Thu Aug 23 02:10:56 2012
@@ -1,4 +1,4 @@
-; RUN: llc -O0 -asm-verbose < %s | FileCheck %s
+; RUN: llc -O0 -asm-verbose -darwin-gdb-compat < %s | FileCheck %s
; CHECK-NOT: .asciz "X" ## External Name
; CHECK: .asciz "Y" ## External Name
; Test to check type with no definition is listed in pubtypes section.
More information about the llvm-commits
mailing list