diff options
author | Alexander Shaposhnikov <alexshap@fb.com> | 2019-11-18 15:44:58 -0800 |
---|---|---|
committer | Alexander Shaposhnikov <alexshap@fb.com> | 2019-11-19 15:16:32 -0800 |
commit | 88f00aef684ff84a6494e1f17d5466c5678f703d (patch) | |
tree | fcea95badfc8a2f1ca19fb4f5b4f90b2c328f482 /llvm/tools/llvm-objcopy/MachO/Object.cpp | |
parent | 28a91473e33eb3585a87514e4cf2523a9a587d82 (diff) | |
download | bcm5719-llvm-88f00aef684ff84a6494e1f17d5466c5678f703d.tar.gz bcm5719-llvm-88f00aef684ff84a6494e1f17d5466c5678f703d.zip |
Introduce llvm-install-name-tool
This diff adds a new "driver" for llvm-objcopy
which is supposed to emulate the behavior of install-name-tool.
This is a recommit of b5913e6d2 with ubsan issues fixed.
Differential revision: https://reviews.llvm.org/D69146
Test plan: make check-all
Diffstat (limited to 'llvm/tools/llvm-objcopy/MachO/Object.cpp')
-rw-r--r-- | llvm/tools/llvm-objcopy/MachO/Object.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/tools/llvm-objcopy/MachO/Object.cpp b/llvm/tools/llvm-objcopy/MachO/Object.cpp index 5626782d7d6..812853ec463 100644 --- a/llvm/tools/llvm-objcopy/MachO/Object.cpp +++ b/llvm/tools/llvm-objcopy/MachO/Object.cpp @@ -29,6 +29,10 @@ void Object::removeSections(function_ref<bool(const Section &)> ToRemove) { std::end(LC.Sections)); } +void Object::addLoadCommand(LoadCommand LC) { + LoadCommands.push_back(std::move(LC)); +} + } // end namespace macho } // end namespace objcopy } // end namespace llvm |