[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)
commit49179ddba4d6a5b0a768936da42a7694ddf0b780
treef94dc94b177abfe587cb34aec9d533873934fd8e
parent00f7d9ecc8229b0dd36d362f82b4f09869d12e71
[Object, ELF] Don't assert on invalid magic in createELFObjectFile.

Instead, return a proper error code from factory.

llvm-svn: 239116
llvm/lib/Object/ELFObjectFile.cpp
llvm/test/DebugInfo/Inputs/invalid.elf.3 [new file with mode: 0644]
llvm/test/DebugInfo/dwarfdump-invalid.test