dsymutil: Don't prune forward declarations inside of an imported TAG_module
authorAdrian Prantl <aprantl@apple.com>
Mon, 5 Oct 2015 23:11:20 +0000 (23:11 +0000)
committerAdrian Prantl <aprantl@apple.com>
Mon, 5 Oct 2015 23:11:20 +0000 (23:11 +0000)
commitfce2219764f00e1b6de75bca08d9b10a212165b5
tree25f6aad73d4b069b2795bfbde8207b25192c6d42
parent080c92b40d68b50fe7c61c92e4504d96bfb12fb4
dsymutil: Don't prune forward declarations inside of an imported TAG_module
if there exists not definition for the type.
For this to work, we need to clone the imported modules before building
the decl context chains of the DIEs in the non-skeleton CUs.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@249362 91177308-0d34-0410-b5e6-96231b3b80d8
test/tools/dsymutil/Inputs/submodules/1.o
test/tools/dsymutil/Inputs/submodules/Parent.pcm
test/tools/dsymutil/X86/submodules.m
tools/dsymutil/DwarfLinker.cpp