]> granicus.if.org Git - llvm/commit
[dsymutil] Fix handling of empty CUs in LTO links.
authorFrederic Riss <friss@apple.com>
Thu, 9 Feb 2017 19:41:55 +0000 (19:41 +0000)
committerFrederic Riss <friss@apple.com>
Thu, 9 Feb 2017 19:41:55 +0000 (19:41 +0000)
commit909a321521e871254d5a1ee2d782eca48134f96a
tree6e55d8b9abb948bea61d0cbc87429ddad0935fe3
parentf206bf21457031222ab52a12ff85647fc34076b8
[dsymutil] Fix handling of empty CUs in LTO links.

r288399 introduced the DIEUnit class, and in the process broke
the corner case where dsymutil generates an empty CU during an
LTO link. This restores the logic and adds a test for the corner
case.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@294618 91177308-0d34-0410-b5e6-96231b3b80d8
test/tools/dsymutil/X86/generate-empty-CU.test [new file with mode: 0644]
tools/dsymutil/DwarfLinker.cpp