Emit pubtypes only when going for darwin gdb compatibility.

rdar://10393214

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@162434 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Eric Christopher 2012-08-23 07:10:56 +00:00
parent ccffa84943
commit 360f0062bc
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.