forked from OSchip/llvm-project
[llvm-objcopy] Don't copy Config when processing --keep
llvm-svn: 346717
This commit is contained in:
parent
35b1c2d19d
commit
e9f34b0d52
|
@ -386,7 +386,7 @@ static void handleArgs(const CopyConfig &Config, Object &Obj,
|
|||
}
|
||||
|
||||
if (!Config.Keep.empty()) {
|
||||
RemovePred = [Config, RemovePred](const SectionBase &Sec) {
|
||||
RemovePred = [&Config, RemovePred](const SectionBase &Sec) {
|
||||
// Explicitly keep these sections regardless of previous removes.
|
||||
if (is_contained(Config.Keep, Sec.Name))
|
||||
return false;
|
||||
|
|
Loading…
Reference in New Issue