Object, ELF: Use error code instead of calling report_fatal_error()
authorAlexey Samsonov <vonosmas@gmail.com>
Thu, 28 May 2015 20:25:42 +0000 (20:25 +0000)
committerAlexey Samsonov <vonosmas@gmail.com>
Thu, 28 May 2015 20:25:42 +0000 (20:25 +0000)
commit8ecf661ef1f99e5eb315b054de39a701d507d780
tree197d756000a8b360571f84bdb0f69bc7febf0524
parentc66c8e7730a2048c971f74a7650f586d3e6506f8
Object, ELF: Use error code instead of calling report_fatal_error()

Make createELFObjectFile() return object_error::parse_failed on
encountering invalid ELF file, instead of crashing the program.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@238481 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Object/ELF.h
test/DebugInfo/Inputs/invalid.elf [new file with mode: 0644]
test/DebugInfo/dwarfdump-invalid.test [new file with mode: 0644]