mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-03-05 02:49:18 +00:00
[llvm-objcopy] Don't copy Config when processing --keep
llvm-svn: 346717
This commit is contained in:
parent
3b56425a55
commit
0479e58207
@ -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