llvm-ar: Darwin archive format fixes.
authorJames Y Knight <jyknight@google.com>
Wed, 10 Oct 2018 21:07:02 +0000 (21:07 +0000)
committerJames Y Knight <jyknight@google.com>
Wed, 10 Oct 2018 21:07:02 +0000 (21:07 +0000)
commitc0b28d55a7f578db6023c8d8856d98293ea76ce4
tree5bff42e9949cf364cfc447d71f965963c8129bbb
parent62cd430602488163adb6ccd2b25d6a3e8b9219be
llvm-ar: Darwin archive format fixes.

* Support writing the DARWIN64 symbol table format.

* In darwin archives, emit a symbol table whenever requested, even
  when there are no members, as the apple linker will abort if given
  an archive without a symbol table.

Added tests for same, and also simplified and moved the GNU 64-bit
symbol table test into archive-symtab.test.

llvm-svn: 344183
llvm/lib/Object/ArchiveWriter.cpp
llvm/test/Object/archive-GNU64-write.test [deleted file]
llvm/test/Object/archive-format.test
llvm/test/Object/archive-symtab.test