More fixes to get good error messages for bad archives.
authorKevin Enderby <enderby@apple.com>
Tue, 2 Aug 2016 22:58:55 +0000 (22:58 +0000)
committerKevin Enderby <enderby@apple.com>
Tue, 2 Aug 2016 22:58:55 +0000 (22:58 +0000)
commit395cc09444b114bfb0f860bcd5c3d0365e7ca18c
tree4226a5b54049be8f2c34517cc70b6c84bb52535c
parentee0627fd1b9f89d6320b186f038bf14fbf6e8468
More fixes to get good error messages for bad archives.

Fixed the last incorrect uses of llvm_unreachable() in the code
which were actually just cases of errors in the input Archives.

llvm-svn: 277540
llvm/include/llvm/Object/Archive.h
llvm/lib/Object/Archive.cpp
llvm/lib/Object/ArchiveWriter.cpp
llvm/test/tools/llvm-objdump/Inputs/libbogus11.a [new file with mode: 0644]
llvm/test/tools/llvm-objdump/Inputs/libbogus12.a [new file with mode: 0644]
llvm/test/tools/llvm-objdump/Inputs/libbogus13.a [new file with mode: 0644]
llvm/test/tools/llvm-objdump/Inputs/libbogus14.a [new file with mode: 0644]
llvm/test/tools/llvm-objdump/malformed-archives.test
llvm/tools/dsymutil/BinaryHolder.cpp
llvm/tools/llvm-ar/llvm-ar.cpp
llvm/tools/llvm-objdump/MachODump.cpp