[dsymutil] Don't crash on empty CU
authorJonas Devlieghere <jonas@devlieghere.com>
Sun, 8 Apr 2018 17:35:17 +0000 (17:35 +0000)
committerJonas Devlieghere <jonas@devlieghere.com>
Sun, 8 Apr 2018 17:35:17 +0000 (17:35 +0000)
commitc226a7b8207990ab77a5bc3bf527588e21e1b4be
treeaf49281e1da8f0054908e9616b68621f89a56d06
parent68ab401f629c79633c72439ffc0a309bff3b5df5
[dsymutil] Don't crash on empty CU

Add some additional checks so we don't crash on empty compile units.

llvm-svn: 329537
llvm/test/tools/dsymutil/Inputs/empty-CU.o [new file with mode: 0644]
llvm/test/tools/dsymutil/Inputs/empty-CU.s [new file with mode: 0644]
llvm/test/tools/dsymutil/X86/empty-CU.test [new file with mode: 0644]
llvm/tools/dsymutil/DwarfLinker.cpp