[llvm-objcopy] Initial COFF support
authorMartin Storsjo <martin@martin.st>
Wed, 19 Dec 2018 07:24:38 +0000 (07:24 +0000)
committerMartin Storsjo <martin@martin.st>
Wed, 19 Dec 2018 07:24:38 +0000 (07:24 +0000)
commite84a0b5a9e2c8003dc857f2760134e36df1e9987
treeaecebf768c7a3199e49d042918208e424327118a
parent642e140bebe0825168078f15b992e604b6af4e81
[llvm-objcopy] Initial COFF support

This is an initial implementation of no-op passthrough copying of COFF
with objcopy.

Differential Revision: https://reviews.llvm.org/D54939

llvm-svn: 349605
16 files changed:
llvm/include/llvm/Object/COFF.h
llvm/lib/Object/COFFObjectFile.cpp
llvm/test/tools/llvm-objcopy/COFF/Inputs/i386-exe.yaml [new file with mode: 0644]
llvm/test/tools/llvm-objcopy/COFF/Inputs/i386-obj.yaml [new file with mode: 0644]
llvm/test/tools/llvm-objcopy/COFF/Inputs/x86_64-exe.yaml [new file with mode: 0644]
llvm/test/tools/llvm-objcopy/COFF/Inputs/x86_64-obj.yaml [new file with mode: 0644]
llvm/test/tools/llvm-objcopy/COFF/basic-copy.test [new file with mode: 0644]
llvm/tools/llvm-objcopy/CMakeLists.txt
llvm/tools/llvm-objcopy/COFF/COFFObjcopy.cpp [new file with mode: 0644]
llvm/tools/llvm-objcopy/COFF/COFFObjcopy.h [new file with mode: 0644]
llvm/tools/llvm-objcopy/COFF/Object.h [new file with mode: 0644]
llvm/tools/llvm-objcopy/COFF/Reader.cpp [new file with mode: 0644]
llvm/tools/llvm-objcopy/COFF/Reader.h [new file with mode: 0644]
llvm/tools/llvm-objcopy/COFF/Writer.cpp [new file with mode: 0644]
llvm/tools/llvm-objcopy/COFF/Writer.h [new file with mode: 0644]
llvm/tools/llvm-objcopy/llvm-objcopy.cpp