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.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
llvm/test/tools/llvm-objcopy/MachO/bitcode-strip-remove-nonempty-segment.test | ||
---|---|---|
4–6 | Ideally, we'd use the same invocation to check everything at once. I believe llvm-readobj has an option to dump Mach-O segments. Does that suffice? | |
llvm/test/tools/llvm-objcopy/MachO/bitcode-strip-remove.test | ||
12 | It's usually a bad idea to have a purely negative check like this, because they can rot too easily. Better would be to check all segments and show the one you want isn't in that set. | |
llvm/tools/llvm-objcopy/ObjcopyOptions.cpp | ||
1224 | its - belonging to it |
LGTM, with one change.
By the way, if you haven't already, you've probably done enough to request commit access.
llvm/test/tools/llvm-objcopy/MachO/bitcode-strip-remove.test | ||
---|---|---|
15 | No need for this line: 1) the --implicit-check-not covers it. 2) This won't catch __LLVM appearing before or between the other segments. |
Ideally, we'd use the same invocation to check everything at once. I believe llvm-readobj has an option to dump Mach-O segments. Does that suffice?