mirror of
https://github.com/RPCS3/llvm.git
synced 2025-03-03 08:07:51 +00:00
[llvm-objcopy] Don't copy Config when processing --keep
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@346717 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
2b46d375af
commit
3201558074
@ -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…
x
Reference in New Issue
Block a user