[PATCH] D65541: [llvm-objcopy][MachO] Implement --only-section
Alexander Shaposhnikov via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Aug 1 01:32:59 PDT 2019
alexshap added inline comments.
================
Comment at: llvm/tools/llvm-objcopy/CopyConfig.h:102
+ bool isMachOCannonicalName() const {
+ return R ? true : is_contained(Name, ',');
+ }
----------------
Name.conains(',')
================
Comment at: llvm/tools/llvm-objcopy/MachO/MachOObjcopy.cpp:28
+ RemovePred = [&Config, RemovePred](const Section &Sec) {
+ if (is_contained(Config.OnlySection, Sec.CannonicalName))
+ return false;
----------------
return !is_contained(Config.OnlySection, Sec.CanonicalName)
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D65541/new/
https://reviews.llvm.org/D65541
More information about the llvm-commits
mailing list