mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-25 16:29:20 +00:00
Don't bother emitting the pubtypes section on darwin since there aren't
any maintained consumers of it on that platform. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@189631 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
ab6cd83731
commit
2612354594
@ -1111,15 +1111,11 @@ void DwarfDebug::endModule() {
|
||||
emitAccelTypes();
|
||||
}
|
||||
|
||||
// Emit info into a debug pubnames section, if requested.
|
||||
if (HasDwarfPubSections)
|
||||
// Emit the pubnames and pubtypes sections if requested.
|
||||
if (HasDwarfPubSections) {
|
||||
emitDebugPubnames();
|
||||
|
||||
// Emit info into a debug pubtypes section.
|
||||
// TODO: When we don't need the option anymore we can
|
||||
// remove all of the code that adds to the table.
|
||||
if (useDarwinGDBCompat() || HasDwarfPubSections)
|
||||
emitDebugPubTypes();
|
||||
}
|
||||
|
||||
// Finally emit string information into a string table.
|
||||
emitDebugStr();
|
||||
|
@ -1,4 +1,4 @@
|
||||
; RUN: llc -O0 -asm-verbose -mtriple=x86_64-macosx < %s | FileCheck %s
|
||||
; RUN: llc -O0 -asm-verbose -mtriple=x86_64-macosx -generate-dwarf-pub-sections=Enable < %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.
|
||||
|
Loading…
Reference in New Issue
Block a user