summaryrefslogtreecommitdiffstats
path: root/llvm/tools
diff options
context:
space:
mode:
authorAdrian Prantl <aprantl@apple.com>2017-08-22 01:10:48 +0000
committerAdrian Prantl <aprantl@apple.com>2017-08-22 01:10:48 +0000
commitacdc3a7bffca08e9738b5ed119793b1121514876 (patch)
tree25faaebe29ba1987dbaa37389083f6d8a35ceea5 /llvm/tools
parent92d800048743612e4bfd6b3215254d459fb90758 (diff)
downloadbcm5719-llvm-acdc3a7bffca08e9738b5ed119793b1121514876.tar.gz
bcm5719-llvm-acdc3a7bffca08e9738b5ed119793b1121514876.zip
dsymutil: don't copy compile units without children from PCM files
rdar://problem/33830532 llvm-svn: 311416
Diffstat (limited to 'llvm/tools')
-rw-r--r--llvm/tools/dsymutil/DwarfLinker.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/tools/dsymutil/DwarfLinker.cpp b/llvm/tools/dsymutil/DwarfLinker.cpp
index f9328e42fd0..6b5415a0795 100644
--- a/llvm/tools/dsymutil/DwarfLinker.cpp
+++ b/llvm/tools/dsymutil/DwarfLinker.cpp
@@ -3358,6 +3358,8 @@ void DwarfLinker::loadClangModule(StringRef Filename, StringRef ModulePath,
Unit->markEverythingAsKept();
}
}
+ if (!Unit->getOrigUnit().getUnitDIE().hasChildren())
+ return;
if (Options.Verbose) {
outs().indent(Indent);
outs() << "cloning .debug_info from " << Filename << "\n";
OpenPOWER on IntegriCloud