[PATCH] D53311: [llvm-objcopy] Introduce dispatch mechanism based on input type

Alexander Shaposhnikov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 16 01:20:04 PDT 2018


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

This diff includes the following changes:

1. Move everything ELF-related into the namespace llvm::objcopy::elf,

declare the exposed higher-level interface in ELFOjcopy.h
(and move the implementation into ELFObjcopy.cpp)

2. Add a stub for MachO.
3. Refactor llvm-objcopy.cpp to keep the format-agnostic code only

(archives, dates manipulations etc)

Test plan: make check-all


Repository:
  rL LLVM

https://reviews.llvm.org/D53311

Files:
  tools/llvm-objcopy/CMakeLists.txt
  tools/llvm-objcopy/ELFObjcopy.cpp
  tools/llvm-objcopy/ELFObjcopy.h
  tools/llvm-objcopy/MachOObjcopy.h
  tools/llvm-objcopy/llvm-objcopy.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D53311.169788.patch
Type: text/x-patch
Size: 42601 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20181016/d3e0b375/attachment.bin>


More information about the llvm-commits mailing list