[lld] r286805 - [ELF] - format. NFC.
George Rimar via llvm-commits
llvm-commits at lists.llvm.org
Mon Nov 14 02:14:18 PST 2016
Author: grimar
Date: Mon Nov 14 04:14:18 2016
New Revision: 286805
URL: http://llvm.org/viewvc/llvm-project?rev=286805&view=rev
Log:
[ELF] - format. NFC.
Modified:
lld/trunk/ELF/DriverUtils.cpp
lld/trunk/ELF/InputSection.cpp
lld/trunk/ELF/InputSection.h
lld/trunk/ELF/OutputSections.cpp
lld/trunk/ELF/SyntheticSections.cpp
lld/trunk/ELF/Writer.cpp
Modified: lld/trunk/ELF/DriverUtils.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/DriverUtils.cpp?rev=286805&r1=286804&r2=286805&view=diff
==============================================================================
--- lld/trunk/ELF/DriverUtils.cpp (original)
+++ lld/trunk/ELF/DriverUtils.cpp Mon Nov 14 04:14:18 2016
@@ -41,10 +41,8 @@ using namespace lld::elf;
// Create table mapping all options defined in Options.td
static const opt::OptTable::Info OptInfo[] = {
#define OPTION(X1, X2, ID, KIND, GROUP, ALIAS, X6, X7, X8, X9, X10) \
- { \
- X1, X2, X9, X10, OPT_##ID, opt::Option::KIND##Class, X8, X7, OPT_##GROUP, \
- OPT_##ALIAS, X6 \
- },
+ {X1, X2, X9, X10, OPT_##ID, opt::Option::KIND##Class, \
+ X8, X7, OPT_##GROUP, OPT_##ALIAS, X6},
#include "Options.inc"
#undef OPTION
};
Modified: lld/trunk/ELF/InputSection.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/InputSection.cpp?rev=286805&r1=286804&r2=286805&view=diff
==============================================================================
--- lld/trunk/ELF/InputSection.cpp (original)
+++ lld/trunk/ELF/InputSection.cpp Mon Nov 14 04:14:18 2016
@@ -259,8 +259,7 @@ static uint64_t getAArch64Page(uint64_t
return Expr & (~static_cast<uint64_t>(0xFFF));
}
-static uint32_t getARMUndefinedRelativeWeakVA(uint32_t Type,
- uint32_t A,
+static uint32_t getARMUndefinedRelativeWeakVA(uint32_t Type, uint32_t A,
uint32_t P) {
switch (Type) {
case R_ARM_THM_JUMP11:
@@ -281,8 +280,7 @@ static uint32_t getARMUndefinedRelativeW
}
}
-static uint64_t getAArch64UndefinedRelativeWeakVA(uint64_t Type,
- uint64_t A,
+static uint64_t getAArch64UndefinedRelativeWeakVA(uint64_t Type, uint64_t A,
uint64_t P) {
switch (Type) {
case R_AARCH64_CALL26:
Modified: lld/trunk/ELF/InputSection.h
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/InputSection.h?rev=286805&r1=286804&r2=286805&view=diff
==============================================================================
--- lld/trunk/ELF/InputSection.h (original)
+++ lld/trunk/ELF/InputSection.h Mon Nov 14 04:14:18 2016
@@ -232,7 +232,6 @@ public:
// Splittable sections are handled as a sequence of data
// rather than a single large blob of data.
std::vector<EhSectionPiece> Pieces;
-
};
// This corresponds to a non SHF_MERGE section of an input file.
Modified: lld/trunk/ELF/OutputSections.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/OutputSections.cpp?rev=286805&r1=286804&r2=286805&view=diff
==============================================================================
--- lld/trunk/ELF/OutputSections.cpp (original)
+++ lld/trunk/ELF/OutputSections.cpp Mon Nov 14 04:14:18 2016
@@ -639,8 +639,7 @@ template <class ELFT> void OutputSection
if (!Config->Relocatable) {
// SHF_LINK_ORDER only has meaning in relocatable objects
this->Flags &= ~SHF_LINK_ORDER;
- }
- else if (!this->Sections.empty()) {
+ } else if (!this->Sections.empty()) {
// When doing a relocatable link we must preserve the link order
// dependency of sections with the SHF_LINK_ORDER flag. The dependency
// is indicated by the sh_link field. We need to translate the
Modified: lld/trunk/ELF/SyntheticSections.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/SyntheticSections.cpp?rev=286805&r1=286804&r2=286805&view=diff
==============================================================================
--- lld/trunk/ELF/SyntheticSections.cpp (original)
+++ lld/trunk/ELF/SyntheticSections.cpp Mon Nov 14 04:14:18 2016
@@ -616,8 +616,7 @@ template <class ELFT> void GotSection<EL
template <class ELFT>
GotPltSection<ELFT>::GotPltSection()
: SyntheticSection<ELFT>(SHF_ALLOC | SHF_WRITE, SHT_PROGBITS,
- Target->GotPltEntrySize, ".got.plt") {
-}
+ Target->GotPltEntrySize, ".got.plt") {}
template <class ELFT> void GotPltSection<ELFT>::addEntry(SymbolBody &Sym) {
Sym.GotPltIndex = Target->GotPltHeaderEntriesNum + Entries.size();
Modified: lld/trunk/ELF/Writer.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/Writer.cpp?rev=286805&r1=286804&r2=286805&view=diff
==============================================================================
--- lld/trunk/ELF/Writer.cpp (original)
+++ lld/trunk/ELF/Writer.cpp Mon Nov 14 04:14:18 2016
@@ -129,9 +129,7 @@ template <class ELFT> static bool needsI
!Script<ELFT>::X->ignoreInterpSection();
}
-template <class ELFT> void elf::writeResult() {
- Writer<ELFT>().run();
-}
+template <class ELFT> void elf::writeResult() { Writer<ELFT>().run(); }
// The main function of the writer.
template <class ELFT> void Writer<ELFT>::run() {
More information about the llvm-commits
mailing list