[lld] r289823 - [ELF] - Apply format. NFC.

George Rimar via llvm-commits llvm-commits at lists.llvm.org
Thu Dec 15 07:38:09 PST 2016


Author: grimar
Date: Thu Dec 15 09:38:09 2016
New Revision: 289823

URL: http://llvm.org/viewvc/llvm-project?rev=289823&view=rev
Log:
[ELF] - Apply format. NFC.

Modified:
    lld/trunk/ELF/LinkerScript.cpp

Modified: lld/trunk/ELF/LinkerScript.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/LinkerScript.cpp?rev=289823&r1=289822&r2=289823&view=diff
==============================================================================
--- lld/trunk/ELF/LinkerScript.cpp (original)
+++ lld/trunk/ELF/LinkerScript.cpp Thu Dec 15 09:38:09 2016
@@ -378,7 +378,8 @@ void LinkerScript<ELFT>::processCommands
 
 // 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
 // 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<
          }) == 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)




More information about the llvm-commits mailing list