OSDN Git Service

[llvm-objcopy] Factor out CopyConfig
authorAlexander Shaposhnikov <shal1t712@gmail.com>
Thu, 11 Oct 2018 22:33:50 +0000 (22:33 +0000)
committerAlexander Shaposhnikov <shal1t712@gmail.com>
Thu, 11 Oct 2018 22:33:50 +0000 (22:33 +0000)
commitbd934ffaabd8b706cf6d7bc52bd67bab81f7e5d5
treefbdcf9a6ae8dc93dbf1fb574010a01714e02e2ac
parent744c960d1283eb9afea0ece9cd8653b382592171
[llvm-objcopy] Factor out CopyConfig

In this diff we move out CopyConfig from llvm-oobjcopy.cpp into a separate header CopyConfig.h
to enable us (in the future) reuse this class in the other implementations of objcopy (for coff, mach-o).
Additionally this enables us to unload the complexity from llvm-objcopy.cpp a little bit.

Test plan: make check-all

Differential revision: https://reviews.llvm.org/D53006

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@344307 91177308-0d34-0410-b5e6-96231b3b80d8
tools/llvm-objcopy/CMakeLists.txt
tools/llvm-objcopy/CopyConfig.cpp [new file with mode: 0644]
tools/llvm-objcopy/CopyConfig.h [new file with mode: 0644]
tools/llvm-objcopy/Object.h
tools/llvm-objcopy/llvm-objcopy.cpp