diff options
Diffstat (limited to 'llvm/tools/llvm-objcopy/llvm-objcopy.cpp')
-rw-r--r-- | llvm/tools/llvm-objcopy/llvm-objcopy.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/tools/llvm-objcopy/llvm-objcopy.cpp b/llvm/tools/llvm-objcopy/llvm-objcopy.cpp index b2a6ed4..0bf9bc4 100644 --- a/llvm/tools/llvm-objcopy/llvm-objcopy.cpp +++ b/llvm/tools/llvm-objcopy/llvm-objcopy.cpp @@ -505,7 +505,7 @@ static void handleArgs(const CopyConfig &Config, Object &Obj, // Removes: if (!Config.ToRemove.empty()) { RemovePred = [&Config](const SectionBase &Sec) { - return find(Config.ToRemove, Sec.Name) != Config.ToRemove.end(); + return is_contained(Config.ToRemove, Sec.Name); }; } @@ -573,7 +573,7 @@ static void handleArgs(const CopyConfig &Config, Object &Obj, if (!Config.OnlyKeep.empty()) { RemovePred = [&Config, RemovePred, &Obj](const SectionBase &Sec) { // Explicitly keep these sections regardless of previous removes. - if (find(Config.OnlyKeep, Sec.Name) != Config.OnlyKeep.end()) + if (is_contained(Config.OnlyKeep, Sec.Name)) return false; // Allow all implicit removes. @@ -595,7 +595,7 @@ static void handleArgs(const CopyConfig &Config, Object &Obj, if (!Config.Keep.empty()) { RemovePred = [Config, RemovePred](const SectionBase &Sec) { // Explicitly keep these sections regardless of previous removes. - if (find(Config.Keep, Sec.Name) != Config.Keep.end()) + if (is_contained(Config.Keep, Sec.Name)) return false; // Otherwise defer to RemovePred. return RemovePred(Sec); |