Skip to content

Commit 9d81bc0

Browse files
committed
formatting
1 parent 8b6377a commit 9d81bc0

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

lld/ELF/Config.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ enum class SeparateSegmentKind { None, Code, Loadable };
132132
enum class GnuStackKind { None, Exec, NoExec };
133133

134134
// For --lto=
135-
enum LtoKind : uint8_t {UnifiedThin, UnifiedRegular, Default};
135+
enum LtoKind : uint8_t { UnifiedThin, UnifiedRegular, Default };
136136

137137
// For -z gcs=
138138
enum class GcsPolicy { Implicit, Never, Always };
@@ -196,7 +196,8 @@ struct Config {
196196
uint8_t osabi = 0;
197197
uint32_t andFeatures = 0;
198198
llvm::CachePruningPolicy thinLTOCachePolicy;
199-
llvm::SetVector<llvm::CachedHashString> dependencyFiles; // for --dependency-file
199+
llvm::SetVector<llvm::CachedHashString>
200+
dependencyFiles; // for --dependency-file
200201
llvm::StringMap<uint64_t> sectionStartMap;
201202
llvm::StringRef bfdname;
202203
llvm::StringRef chroot;

lld/ELF/InputFiles.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -872,10 +872,10 @@ template <class ELFT> void ObjFile<ELFT>::parse(bool ignoreComdats) {
872872
!canHaveMemtagGlobals(ctx))
873873
sections[i] = &InputSection::discarded;
874874
} break;
875-
}
875+
}
876876

877-
// Read a symbol table.
878-
initializeSymbols(obj);
877+
// Read a symbol table.
878+
initializeSymbols(obj);
879879
}
880880
}
881881

lld/ELF/InputFiles.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ class ELFFileBase : public InputFile {
200200
}
201201
MutableArrayRef<Symbol *> getMutableGlobalSymbols() {
202202
return llvm::MutableArrayRef(symbols.get() + firstGlobal,
203-
numSymbols - firstGlobal);
203+
numSymbols - firstGlobal);
204204
}
205205

206206
template <typename ELFT> typename ELFT::ShdrRange getELFShdrs() const {
@@ -271,7 +271,6 @@ template <class ELFT> class ObjFile : public ELFFileBase {
271271

272272
uint32_t getSectionIndex(const Elf_Sym &sym) const;
273273

274-
275274
// Pointer to this input file's .llvm_addrsig section, if it has one.
276275
const Elf_Shdr *addrsigSec = nullptr;
277276

0 commit comments

Comments
 (0)