[PATCH] D120927: [llvm] remove empty __LLVM segment in llvm-bitcode-strip

Richard Howell via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Mar 3 11:26:20 PST 2022


rmaz created this revision.
Herald added a subscriber: hiraditya.
Herald added a reviewer: alexander-shaposhnikov.
Herald added a reviewer: rupprecht.
Herald added a reviewer: jhenderson.
Herald added a project: All.
rmaz requested review of this revision.
Herald added subscribers: llvm-commits, MaskRay.
Herald added a project: LLVM.

When running llvm-bitcode-strip we want to remove the __LLVM
segment as well as the __bundle section when there are no other
sections in the segment.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D120927

Files:
  llvm/include/llvm/ObjCopy/MachO/MachOConfig.h
  llvm/lib/ObjCopy/MachO/MachOObjcopy.cpp
  llvm/test/tools/llvm-objcopy/MachO/bitcode-strip-remove-nonempty-segment.test
  llvm/test/tools/llvm-objcopy/MachO/bitcode-strip-remove.test
  llvm/tools/llvm-objcopy/ObjcopyOptions.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D120927.412784.patch
Type: text/x-patch
Size: 9718 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220303/0faeb5b1/attachment.bin>


More information about the llvm-commits mailing list