[llvm] r189631 - Don't bother emitting the pubtypes section on darwin since there aren't
Eric Christopher
echristo at gmail.com
Thu Aug 29 17:40:18 PDT 2013
Author: echristo
Date: Thu Aug 29 19:40:17 2013
New Revision: 189631
URL: http://llvm.org/viewvc/llvm-project?rev=189631&view=rev
Log:
Don't bother emitting the pubtypes section on darwin since there aren't
any maintained consumers of it on that platform.
Modified:
llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
llvm/trunk/test/DebugInfo/X86/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=189631&r1=189630&r2=189631&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp (original)
+++ llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp Thu Aug 29 19:40:17 2013
@@ -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();
Modified: llvm/trunk/test/DebugInfo/X86/2010-04-13-PubType.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/DebugInfo/X86/2010-04-13-PubType.ll?rev=189631&r1=189630&r2=189631&view=diff
==============================================================================
--- llvm/trunk/test/DebugInfo/X86/2010-04-13-PubType.ll (original)
+++ llvm/trunk/test/DebugInfo/X86/2010-04-13-PubType.ll Thu Aug 29 19:40:17 2013
@@ -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.
More information about the llvm-commits
mailing list