summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
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
commitbf1ea3c727da909401c102f2c4fd16feb27643f8 (patch)
treeac8f6d0fe9ff6b45f4d9054057a2f6540781b724 /llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
parentef7fe1f6b2cb7856794bc47485914e22d2d0bae6 (diff)
downloadbcm5719-llvm-bf1ea3c727da909401c102f2c4fd16feb27643f8.tar.gz
bcm5719-llvm-bf1ea3c727da909401c102f2c4fd16feb27643f8.zip
Only emit the section sym if we're emitting the section.
llvm-svn: 189288
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
index 99ca037ec28..c523972ac3c 100644
--- a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
+++ b/llvm/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()) {
OpenPOWER on IntegriCloud