[llvm-objcopy][MachO] Copy LC_LOAD_WEAK_DYLIB load commands
authorAlexander Shaposhnikov <alexshap@fb.com>
Thu, 23 Apr 2020 18:37:39 +0000 (11:37 -0700)
committerAlexander Shaposhnikov <alexshap@fb.com>
Thu, 23 Apr 2020 19:21:44 +0000 (12:21 -0700)
commitd987eed91d4866a041a3a0c6b3aacb15cfebb3ee
treec7157239093be5057073360a291bc5aca8d02c67
parent5fe3f06596927df988b7aa8797918c49e179f2fc
[llvm-objcopy][MachO] Copy LC_LOAD_WEAK_DYLIB load commands

LC_LOAD_WEAK_DYLIB is analogous to LC_LOAD_DYLIB and doesn't require any special handling.

Test plan: make check-all

Differential revision: https://reviews.llvm.org/D78602
llvm/test/tools/llvm-objcopy/MachO/lc-load-weak-dylib.test [new file with mode: 0644]
llvm/tools/llvm-objcopy/MachO/MachOLayoutBuilder.cpp