[PATCH] D53006: [llvm-objcopy] Factor out CopyConfig

Alexander Shaposhnikov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 8 17:00:49 PDT 2018


alexshap created this revision.
alexshap added reviewers: jhenderson, jakehehrlich.
alexshap created this object with visibility "All Users".
Herald added subscribers: rupprecht, fedor.sergeev, mgorny.

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-llvm-tools


Repository:
  rL LLVM

https://reviews.llvm.org/D53006

Files:
  tools/llvm-objcopy/CMakeLists.txt
  tools/llvm-objcopy/CopyConfig.cpp
  tools/llvm-objcopy/CopyConfig.h
  tools/llvm-objcopy/Object.h
  tools/llvm-objcopy/llvm-objcopy.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D53006.168734.patch
Type: text/x-patch
Size: 40028 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20181009/cafb9ea4/attachment-0001.bin>


More information about the llvm-commits mailing list