diff options
author | Eric Christopher <echristo@gmail.com> | 2013-10-03 17:41:20 +0000 |
---|---|---|
committer | Eric Christopher <echristo@gmail.com> | 2013-10-03 17:41:20 +0000 |
commit | 45fae28db7ccc4f9d40f4b4d3fb35676826dfdc0 (patch) | |
tree | 8e6eb505c1698d497847a994ccaad18f70edb608 /lib/CodeGen | |
parent | 7c9fc90c75a2b7cf18dd725484aba0af55b44b33 (diff) | |
download | llvm-45fae28db7ccc4f9d40f4b4d3fb35676826dfdc0.tar.gz llvm-45fae28db7ccc4f9d40f4b4d3fb35676826dfdc0.tar.bz2 llvm-45fae28db7ccc4f9d40f4b4d3fb35676826dfdc0.tar.xz |
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
Diffstat (limited to 'lib/CodeGen')
-rw-r--r-- | lib/CodeGen/AsmPrinter/DwarfDebug.cpp | 3 |
1 files changed, 0 insertions, 3 deletions
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); |