diff options
author | George Rimar <grimar@accesssoftek.com> | 2016-04-14 13:23:02 +0000 |
---|---|---|
committer | George Rimar <grimar@accesssoftek.com> | 2016-04-14 13:23:02 +0000 |
commit | ee741cfa5f9c8f38dbbc0aacd2a24c439bf294bc (patch) | |
tree | 7b9111aa1687ddb2b69934f1064df7700cf156e8 | |
parent | 4e8cf85b74176e8c2e2c6ebbf4fa952d0d9791da (diff) | |
download | bcm5719-llvm-ee741cfa5f9c8f38dbbc0aacd2a24c439bf294bc.tar.gz bcm5719-llvm-ee741cfa5f9c8f38dbbc0aacd2a24c439bf294bc.zip |
Clang formated file. NFC.
llvm-svn: 266299
-rw-r--r-- | lld/ELF/Writer.cpp | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/lld/ELF/Writer.cpp b/lld/ELF/Writer.cpp index cc1d015e60e..31f8d765ae3 100644 --- a/lld/ELF/Writer.cpp +++ b/lld/ELF/Writer.cpp @@ -726,12 +726,12 @@ template <class ELFT> void Writer<ELFT>::copyLocalSymbols() { // thus, within reach of the TOC base pointer). static int getPPC64SectionRank(StringRef SectionName) { return StringSwitch<int>(SectionName) - .Case(".tocbss", 0) - .Case(".branch_lt", 2) - .Case(".toc", 3) - .Case(".toc1", 4) - .Case(".opd", 5) - .Default(1); + .Case(".tocbss", 0) + .Case(".branch_lt", 2) + .Case(".toc", 3) + .Case(".toc1", 4) + .Case(".opd", 5) + .Default(1); } template <class ELFT> static bool isRelroSection(OutputSectionBase<ELFT> *Sec) { @@ -871,8 +871,8 @@ template <class ELFT> static uint32_t getAlignment(SharedSymbol<ELFT> *SS) { uintX_t SecAlign = SS->File->getSection(SS->Sym)->sh_addralign; uintX_t SymValue = SS->Sym.st_value; - int TrailingZeros = std::min(countTrailingZeros(SecAlign), - countTrailingZeros(SymValue)); + int TrailingZeros = + std::min(countTrailingZeros(SecAlign), countTrailingZeros(SymValue)); return 1 << TrailingZeros; } @@ -947,8 +947,7 @@ addOptionalSynthetic(SymbolTable<ELFT> &Table, StringRef Name, // all IRELATIVE relocs on startup. For dynamic executables, we don't // need these symbols, since IRELATIVE relocs are resolved through GOT // and PLT. For details, see http://www.airs.com/blog/archives/403. -template <class ELFT> -void Writer<ELFT>::addRelIpltSymbols() { +template <class ELFT> void Writer<ELFT>::addRelIpltSymbols() { if (isOutputDynamic() || !Out<ELFT>::RelaPlt) return; StringRef S = Config->Rela ? "__rela_iplt_start" : "__rel_iplt_start"; |