summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/AsmPrinter
diff options
context:
space:
mode:
authorAdrian Prantl <aprantl@apple.com>2017-07-21 01:24:05 +0000
committerAdrian Prantl <aprantl@apple.com>2017-07-21 01:24:05 +0000
commit65e7ca995dc2da491e682ff5cb8c7104a93cccb8 (patch)
treeeae2b9db8b95b967afef9bc31a39fd20968933cf /llvm/lib/CodeGen/AsmPrinter
parenteb4127ffb5c4111954d04ea25a1cd9fbb18232dd (diff)
downloadbcm5719-llvm-65e7ca995dc2da491e682ff5cb8c7104a93cccb8.tar.gz
bcm5719-llvm-65e7ca995dc2da491e682ff5cb8c7104a93cccb8.zip
Debug Info: Don't strip clang module skeleton CUs.
This corrects a (hopefully :-) accidental side-effect of r304020. rdar://problem/33442618 llvm-svn: 308708
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter')
-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 f1b4d9f20ca..036d1080a28 100644
--- a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
+++ b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
@@ -548,7 +548,8 @@ void DwarfDebug::beginModule() {
for (DICompileUnit *CUNode : M->debug_compile_units()) {
if (CUNode->getEnumTypes().empty() && CUNode->getRetainedTypes().empty() &&
CUNode->getGlobalVariables().empty() &&
- CUNode->getImportedEntities().empty() && CUNode->getMacros().empty())
+ CUNode->getImportedEntities().empty() && CUNode->getMacros().empty() &&
+ !CUNode->getDWOId())
continue;
DwarfCompileUnit &CU = getOrCreateDwarfCompileUnit(CUNode);
OpenPOWER on IntegriCloud