Reapply "More fixes to get good error messages for bad archives."
authorVedant Kumar <vsk@apple.com>
Wed, 3 Aug 2016 19:02:50 +0000 (19:02 +0000)
committerVedant Kumar <vsk@apple.com>
Wed, 3 Aug 2016 19:02:50 +0000 (19:02 +0000)
commit4031d9f80e67c4e36c233e1c390dabed994e9316
treee5242d81491fb0453dfb82b7a611a176368ae75a
parent43aeb001c959098167dec6272160ee73d187067c
Reapply "More fixes to get good error messages for bad archives."

This reverts commit the revert commit r277627. The build errors
mentioned in r277627 were likely caused by an unclean build directory.
Sorry for the noise.

llvm-svn: 277630
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