OSDN Git Service

[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)
commit760af163b4238fdcd92046ed23d8b0d2a76bd1ea
tree9c5db101b1c5981d49af68dc233b2025b84a771f
parentf717140303d1e12ce2cda1766ab8f927e504484c
[dsymutil] Don't crash on empty CU

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

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