Object, support both mach-o archive t.o.c file names
authorNick Kledzik <kledzik@apple.com>
Wed, 12 Nov 2014 01:37:45 +0000 (01:37 +0000)
committerNick Kledzik <kledzik@apple.com>
Wed, 12 Nov 2014 01:37:45 +0000 (01:37 +0000)
commitf44dbda5427bcbdcb7f2c22c57bff8f901ff515a
tree66988d180aabd49b50fd4e271b92f08499e21fcc
parent35a12a85a174f9e61dbe34048b6370a6aeb1a3d5
Object, support both mach-o archive t.o.c file names

For historical reasons archives on mach-o have two possible names for the
file containing the table of contents for the archive: "__.SYMDEF SORTED"
and "__.SYMDEF".  But the libObject archive reader only supported the former.

This patch fixes llvm::object::Archive to support both names.

llvm-svn: 221747
llvm/lib/Object/Archive.cpp
llvm/test/Object/Inputs/macho-archive-unsorted-x86_64.a [new file with mode: 0644]
llvm/test/Object/archive-symtab.test