[llvm-objcopy][MachO] Add support for universal binaries
authorAlexander Shaposhnikov <alexshap@fb.com>
Tue, 6 Oct 2020 10:41:19 +0000 (03:41 -0700)
committerAlexander Shaposhnikov <alexshap@fb.com>
Tue, 6 Oct 2020 11:01:40 +0000 (04:01 -0700)
commit315970de1d7140fa689dbbe7482620f134e5d021
tree0343156d6983be67c7f32895a09cb5640bd17f60
parentc08d48fc2d7cced7b86043854c235394e87c4506
[llvm-objcopy][MachO] Add support for universal binaries

This diff adds support for universal binaries to llvm-objcopy.
This is a recommit of 32c8435ef70031 with the asan issue fixed.

Test plan: make check-all

Differential revision: https://reviews.llvm.org/D88400
llvm/include/llvm/Object/MachOUniversalWriter.h
llvm/lib/Object/MachOUniversalWriter.cpp
llvm/test/tools/llvm-objcopy/MachO/strip-all.test
llvm/test/tools/llvm-objcopy/MachO/universal-object.test [new file with mode: 0644]
llvm/tools/llvm-objcopy/MachO/MachOObjcopy.cpp
llvm/tools/llvm-objcopy/MachO/MachOObjcopy.h
llvm/tools/llvm-objcopy/llvm-objcopy.cpp
llvm/tools/llvm-objcopy/llvm-objcopy.h [new file with mode: 0644]