summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGeorge Rimar <grimar@accesssoftek.com>2016-12-15 15:38:09 +0000
committerGeorge Rimar <grimar@accesssoftek.com>2016-12-15 15:38:09 +0000
commit93c64025fc7a2f92806902ee86b89abc420dfba7 (patch)
treec945820d600e6d06f7ce406f47a721e25e3b2a9c
parenta57511c45190899308fab851fa461637cb0fbbcd (diff)
downloadbcm5719-llvm-93c64025fc7a2f92806902ee86b89abc420dfba7.tar.gz
bcm5719-llvm-93c64025fc7a2f92806902ee86b89abc420dfba7.zip
[ELF] - Apply format. NFC.
llvm-svn: 289823
-rw-r--r--lld/ELF/LinkerScript.cpp9
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)
OpenPOWER on IntegriCloud