forked from OSchip/llvm-project
[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:
parent
a66ab832a0
commit
6a7c7f3915
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue