summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
diff options
context:
space:
mode:
authorEric Christopher <echristo@gmail.com>2013-10-03 17:41:20 +0000
committerEric Christopher <echristo@gmail.com>2013-10-03 17:41:20 +0000
commitc948b9df2376a8afcbfd23d28cd73c16c7c0a7cb (patch)
tree84ef867f6a00b4508ab8a335a5c82e9fdbf36d21 /llvm/lib/CodeGen
parentf976c77ed77f6745d48ad552135046aa32109b72 (diff)
downloadbcm5719-llvm-c948b9df2376a8afcbfd23d28cd73c16c7c0a7cb.tar.gz
bcm5719-llvm-c948b9df2376a8afcbfd23d28cd73c16c7c0a7cb.zip
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. llvm-svn: 191915
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
index 2acbaf76318..1e08e2cd3a4 100644
--- a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
+++ b/llvm/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);
OpenPOWER on IntegriCloud