Move invariants outside of a lambda. NFC.
llvm-svn: 277791
This commit is contained in:
parent
36c1cd235a
commit
808d13ea49
|
@ -213,11 +213,11 @@ template <class ELFT> void LinkerScript<ELFT>::filter() {
|
|||
if (Cmd->Constraint == ConstraintKind::NoConstraint)
|
||||
continue;
|
||||
|
||||
removeElementsIf(*OutputSections, [&](OutputSectionBase<ELFT> *S) {
|
||||
bool Writable = (S->getFlags() & SHF_WRITE);
|
||||
bool RO = (Cmd->Constraint == ConstraintKind::ReadOnly);
|
||||
bool RW = (Cmd->Constraint == ConstraintKind::ReadWrite);
|
||||
|
||||
removeElementsIf(*OutputSections, [&](OutputSectionBase<ELFT> *S) {
|
||||
bool Writable = (S->getFlags() & SHF_WRITE);
|
||||
return S->getName() == Cmd->Name &&
|
||||
((RO && Writable) || (RW && !Writable));
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue