Emit pubtypes only when going for darwin gdb compatibility.

rdar://10393214

llvm-svn: 162434
This commit is contained in:
Eric Christopher 2012-08-23 07:10:56 +00:00
parent 6cb5594979
commit 7782618271
2 changed files with 5 additions and 2 deletions

View File

@ -832,7 +832,10 @@ void DwarfDebug::endModule() {
}
// 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();

View File

@ -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.