[llvm-objcopy][MachO] Change the storage of sections
authorAlexander Shaposhnikov <alexshap@fb.com>
Fri, 21 Feb 2020 21:18:36 +0000 (13:18 -0800)
committerAlexander Shaposhnikov <alexshap@fb.com>
Fri, 21 Feb 2020 21:30:52 +0000 (13:30 -0800)
commitdc046c70de96784772050e2704141c9e2a478220
tree3de3388e69849dd68193fa9e3cda001ae0507efa
parenta5b22b768f5a6f34c8f41eea6a32880794c1690b
[llvm-objcopy][MachO] Change the storage of sections

In this diff we change the storage of a section to unique_ptr.
This refactoring was factored out from D71647.

Test plan: make check-all

Differential revision: https://reviews.llvm.org/D74946
llvm/tools/llvm-objcopy/MachO/MachOLayoutBuilder.cpp
llvm/tools/llvm-objcopy/MachO/MachOObjcopy.cpp
llvm/tools/llvm-objcopy/MachO/MachOReader.cpp
llvm/tools/llvm-objcopy/MachO/MachOWriter.cpp
llvm/tools/llvm-objcopy/MachO/Object.cpp
llvm/tools/llvm-objcopy/MachO/Object.h