[Object, ELF] Don't call llvm_unreachable() from createELFObjectFile.
authorAlexey Samsonov <vonosmas@gmail.com>
Thu, 4 Jun 2015 22:58:25 +0000 (22:58 +0000)
committerAlexey Samsonov <vonosmas@gmail.com>
Thu, 4 Jun 2015 22:58:25 +0000 (22:58 +0000)
commit1ea35c2d5253e1ab7066e9433aa5e1dde02e8723
treee571c4edb49a69acbca4d5c1cf5075313901bf63
parent3e407efb8bfd5211e939822f15509aacb7b26ac6
[Object, ELF] Don't call llvm_unreachable() from createELFObjectFile.

Instead, return a proper error code from factory.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@239113 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Object/ELFObjectFile.cpp
test/DebugInfo/Inputs/invalid.elf.2 [new file with mode: 0644]
test/DebugInfo/dwarfdump-invalid.test