aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Christopher <echristo@gmail.com>2013-08-30 00:40:17 +0000
committerEric Christopher <echristo@gmail.com>2013-08-30 00:40:17 +0000
commit2612354594d286501348a4ca4b72eaf11de77070 (patch)
tree8c08f235c20ac3284b4372787b863c27e5e0b643
parentab6cd837317872025b60495c3d34b4a4ef612690 (diff)
downloadexternal_llvm-2612354594d286501348a4ca4b72eaf11de77070.zip
external_llvm-2612354594d286501348a4ca4b72eaf11de77070.tar.gz
external_llvm-2612354594d286501348a4ca4b72eaf11de77070.tar.bz2
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
-rw-r--r--lib/CodeGen/AsmPrinter/DwarfDebug.cpp10
-rw-r--r--test/DebugInfo/X86/2010-04-13-PubType.ll2
2 files changed, 4 insertions, 8 deletions
diff --git a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
index 86f1786..b1a75fb 100644
--- a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
+++ b/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
@@ -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();
diff --git a/test/DebugInfo/X86/2010-04-13-PubType.ll b/test/DebugInfo/X86/2010-04-13-PubType.ll
index 3166f2d..dc0338f 100644
--- a/test/DebugInfo/X86/2010-04-13-PubType.ll
+++ b/test/DebugInfo/X86/2010-04-13-PubType.ll
@@ -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.