aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorEric Christopher <echristo@gmail.com>2013-08-26 23:24:31 +0000
committerEric Christopher <echristo@gmail.com>2013-08-26 23:24:31 +0000
commit978046bd070fbd3b9359922611b3fd5d3fd7ab96 (patch)
tree17d7eace2b118b76cc71b72745a2c76c4cf9d63b /lib
parent4b272493b7deaa139484b16ee45ae87a46ceef57 (diff)
downloadexternal_llvm-978046bd070fbd3b9359922611b3fd5d3fd7ab96.zip
external_llvm-978046bd070fbd3b9359922611b3fd5d3fd7ab96.tar.gz
external_llvm-978046bd070fbd3b9359922611b3fd5d3fd7ab96.tar.bz2
Only emit the section sym if we're emitting the section.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@189288 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/CodeGen/AsmPrinter/DwarfDebug.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
index 99ca037..c523972 100644
--- a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
+++ b/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
@@ -1929,7 +1929,8 @@ void DwarfDebug::emitSectionLabels() {
emitSectionSym(Asm, TLOF.getDwarfLocSection());
if (HasDwarfPubNames)
emitSectionSym(Asm, TLOF.getDwarfPubNamesSection());
- emitSectionSym(Asm, TLOF.getDwarfPubTypesSection());
+ if (useDarwinGDBCompat())
+ emitSectionSym(Asm, TLOF.getDwarfPubTypesSection());
DwarfStrSectionSym =
emitSectionSym(Asm, TLOF.getDwarfStrSection(), "info_string");
if (useSplitDwarf()) {