From 45fae28db7ccc4f9d40f4b4d3fb35676826dfdc0 Mon Sep 17 00:00:00 2001 From: Eric Christopher Date: Thu, 3 Oct 2013 17:41:20 +0000 Subject: Make sure we emit a section for pubnames even if that section is going to be empty. This is particularly important for the gnu pubnames case since we're emitting a relocation to the section. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191915 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/AsmPrinter/DwarfDebug.cpp | 3 --- 1 file changed, 3 deletions(-) (limited to 'lib') diff --git a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/lib/CodeGen/AsmPrinter/DwarfDebug.cpp index 2acbaf7631..1e08e2cd3a 100644 --- a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp +++ b/lib/CodeGen/AsmPrinter/DwarfDebug.cpp @@ -2427,9 +2427,6 @@ void DwarfDebug::emitDebugPubNames(bool GnuStyle) { CompileUnit *TheCU = I->second; unsigned ID = TheCU->getUniqueID(); - if (TheCU->getGlobalNames().empty()) - continue; - // Start the dwarf pubnames section. Asm->OutStreamer.SwitchSection(PSec); -- cgit v1.2.3