diff options
author | George Rimar <grimar@accesssoftek.com> | 2018-07-04 15:05:21 +0000 |
---|---|---|
committer | George Rimar <grimar@accesssoftek.com> | 2018-07-04 15:05:21 +0000 |
commit | 6a7c7f39152e405a448feca6825085598ad8c841 (patch) | |
tree | a6c9143fc08c73fe5b1d9eeaff5ca69e081fa0f9 | |
parent | a66ab832a040787b52cd74342277cb6f45dcd80c (diff) | |
download | llvm-6a7c7f39152e405a448feca6825085598ad8c841.zip llvm-6a7c7f39152e405a448feca6825085598ad8c841.tar.gz llvm-6a7c7f39152e405a448feca6825085598ad8c841.tar.bz2 |
[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
-rw-r--r-- | lld/ELF/Writer.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lld/ELF/Writer.cpp b/lld/ELF/Writer.cpp index bc3f0be..9753991 100644 --- a/lld/ELF/Writer.cpp +++ b/lld/ELF/Writer.cpp @@ -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 |