Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
- Build Status
Buildable 37029 Build 37028: arc lint + arc unit
Event Timeline
llvm/test/tools/llvm-objcopy/MachO/remove-section.test | ||
---|---|---|
3 | in -> by This test should also show that you can remove multiple sections at the same time with the switch. |
llvm/test/tools/llvm-objcopy/MachO/remove-section.test | ||
---|---|---|
7 | "Error case 1:" is meaningless without other error cases. | |
63 | How easy would it be to use FileCheck --check-prefixes, and possibly -D<NAME> options to share this block with the previous test case? That would avoid duplicating a big chunk of the expected output. You could do something like: # RUN: ... | FileCheck --check-prefixes=REMOVE-COMMON,REMOVE-TEXT-ONLY # RUN: ... | FileCheck --check-prefixes=REMOVE-COMMON # REMOVE-COMMON: # REMOVE-COMMON-NEXT: ... # REMOVE-TEXT-ONLY-NEXT: # REMOVE-TEXT-ONLY-NEXT: ... # REMOVE-COMMON-NEXT: |
llvm/docs/CommandGuide/llvm-objcopy.rst | ||
---|---|---|
84 | Delete "the" |
llvm/tools/llvm-objcopy/MachO/MachOObjcopy.cpp | ||
---|---|---|
42–46 | Not related to this patch, but looks like this discards RemovePred, e.g. --strip-all --only-section will effectively work like --only-section. I found this after noticing that RemovePred is not referenced in the bit you added, which is actually fine there but error prone if the iterative construction of RemovePred is ever reordered. ELF objcopy works like this too, but correctly chains RemovePred for the --only-section switch. |
llvm/tools/llvm-objcopy/MachO/MachOObjcopy.cpp | ||
---|---|---|
42–46 | Nevermind, that flag takes priority, so that's WAI. Ignore this comment. |
llvm/tools/llvm-objcopy/MachO/MachOObjcopy.cpp | ||
---|---|---|
42–46 | I'll add a comment for it. It's worth mentioning in the code. |
Delete "the"