[Object, ELF] Don't assert on invalid magic in createELFObjectFile.
authorAlexey Samsonov <vonosmas@gmail.com>
Thu, 4 Jun 2015 23:14:43 +0000 (23:14 +0000)
committerAlexey Samsonov <vonosmas@gmail.com>
Thu, 4 Jun 2015 23:14:43 +0000 (23:14 +0000)
commit196340cc6cb6b9472eafebb91e1edc8da429a820
tree69cd46c841188786a909f5b6e895b6b5b43c0db5
parentb0b8cde9d4148ebc98ae32ea9ff2607b808e0080
[Object, ELF] Don't assert on invalid magic in createELFObjectFile.

Instead, return a proper error code from factory.

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