diff options
Diffstat (limited to 'lld/ELF/LinkerScript.cpp')
| -rw-r--r-- | lld/ELF/LinkerScript.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/lld/ELF/LinkerScript.cpp b/lld/ELF/LinkerScript.cpp index 68f24acad29..81498b26dbe 100644 --- a/lld/ELF/LinkerScript.cpp +++ b/lld/ELF/LinkerScript.cpp @@ -378,7 +378,8 @@ void LinkerScript<ELFT>::processCommands(OutputSectionFactory<ELFT> &Factory) { // Add sections that didn't match any sections command. template <class ELFT> -void LinkerScript<ELFT>::addOrphanSections(OutputSectionFactory<ELFT> &Factory) { +void LinkerScript<ELFT>::addOrphanSections( + OutputSectionFactory<ELFT> &Factory) { for (InputSectionBase<ELFT> *S : Symtab<ELFT>::X->Sections) if (S->Live && !S->OutSec) addSection(Factory, S, getOutputSectionName(S->Name)); @@ -657,8 +658,7 @@ static bool shouldSkip(const BaseCommand &Cmd) { // Orphan sections are sections present in the input files which are not // explicitly placed into the output file by the linker script. This just // places them in the order already decided in OutputSections. -template <class ELFT> -void LinkerScript<ELFT>::placeOrphanSections() { +template <class ELFT> void LinkerScript<ELFT>::placeOrphanSections() { // The OutputSections are already in the correct order. // This loops creates or moves commands as needed so that they are in the // correct order. @@ -816,8 +816,7 @@ template <class ELFT> bool LinkerScript<ELFT>::ignoreInterpSection() { }) == Opt.PhdrsCommands.end(); } -template <class ELFT> -uint32_t LinkerScript<ELFT>::getFiller(StringRef Name) { +template <class ELFT> uint32_t LinkerScript<ELFT>::getFiller(StringRef Name) { for (const std::unique_ptr<BaseCommand> &Base : Opt.Commands) if (auto *Cmd = dyn_cast<OutputSectionCommand>(Base.get())) if (Cmd->Name == Name) |

