Re-apply r246276 - Object: Teach llvm-ar to create symbol table for COFF short import...
authorRui Ueyama <ruiu@google.com>
Fri, 28 Aug 2015 07:40:30 +0000 (07:40 +0000)
committerRui Ueyama <ruiu@google.com>
Fri, 28 Aug 2015 07:40:30 +0000 (07:40 +0000)
commit40e22518fcb65980e4a39eb2b926bbf65ba69829
tree2262a4e4cc1ae2a712cfff74cbf7fb96be7cff3c
parent109cab44506140a5671d9b0b1643c9bd5558e6cb
Re-apply r246276 - Object: Teach llvm-ar to create symbol table for COFF short import files

This patch includes a fix for a llvm-readobj test. With this patch,
the tool does no longer print out COFF headers for the short import
file, but that's probably desirable because the header for the short
import file is dummy.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@246283 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Object/Binary.h
include/llvm/Object/COFFImportFile.h [new file with mode: 0644]
lib/Object/SymbolicFile.cpp
test/Object/Inputs/coff-short-import-code [new file with mode: 0644]
test/Object/Inputs/coff-short-import-data [new file with mode: 0644]
test/Object/archive-symtab.test
test/tools/llvm-readobj/file-headers.test
tools/llvm-readobj/llvm-readobj.cpp