[ELF] - Simplify. NFC.

Currently, there are only OutputSection and SymbolAssignment
commands possible at the first level under SECTIONS tag.

So, shouldSkip() contained dead "return true".

Patch simplifies the code.

llvm-svn: 336282
This commit is contained in:
George Rimar 2018-07-04 15:05:21 +00:00
parent a66ab832a0
commit 6a7c7f3915
1 changed files with 1 additions and 3 deletions

View File

@ -999,11 +999,9 @@ static int getRankProximity(OutputSection *A, BaseCommand *B) {
// rw_sec : { *(rw_sec) }
// would mean that the RW PT_LOAD would become unaligned.
static bool shouldSkip(BaseCommand *Cmd) {
if (isa<OutputSection>(Cmd))
return false;
if (auto *Assign = dyn_cast<SymbolAssignment>(Cmd))
return Assign->Name != ".";
return true;
return false;
}
// We want to place orphan sections so that they share as much