aboutsummaryrefslogtreecommitdiffstats
path: root/ELF/Writer.h
diff options
context:
space:
mode:
Diffstat (limited to 'ELF/Writer.h')
-rw-r--r--ELF/Writer.h29
1 files changed, 13 insertions, 16 deletions
diff --git a/ELF/Writer.h b/ELF/Writer.h
index 7806f824c58f..784fba9c75a6 100644
--- a/ELF/Writer.h
+++ b/ELF/Writer.h
@@ -1,9 +1,8 @@
//===- Writer.h -------------------------------------------------*- C++ -*-===//
//
-// The LLVM Linker
-//
-// This file is distributed under the University of Illinois Open Source
-// License. See LICENSE.TXT for details.
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//
@@ -20,16 +19,14 @@ namespace elf {
class InputFile;
class OutputSection;
class InputSectionBase;
-template <class ELFT> class ObjFile;
-class SymbolTable;
template <class ELFT> void writeResult();
// This describes a program header entry.
// Each contains type, access flags and range of output sections that will be
// placed in it.
struct PhdrEntry {
- PhdrEntry(unsigned Type, unsigned Flags) : p_type(Type), p_flags(Flags) {}
- void add(OutputSection *Sec);
+ PhdrEntry(unsigned type, unsigned flags) : p_type(type), p_flags(flags) {}
+ void add(OutputSection *sec);
uint64_t p_paddr = 0;
uint64_t p_vaddr = 0;
@@ -40,22 +37,22 @@ struct PhdrEntry {
uint32_t p_type = 0;
uint32_t p_flags = 0;
- OutputSection *FirstSec = nullptr;
- OutputSection *LastSec = nullptr;
- bool HasLMA = false;
+ OutputSection *firstSec = nullptr;
+ OutputSection *lastSec = nullptr;
+ bool hasLMA = false;
- uint64_t LMAOffset = 0;
+ uint64_t lmaOffset = 0;
};
void addReservedSymbols();
-llvm::StringRef getOutputSectionName(const InputSectionBase *S);
+llvm::StringRef getOutputSectionName(const InputSectionBase *s);
template <class ELFT> uint32_t calcMipsEFlags();
-uint8_t getMipsFpAbiFlag(uint8_t OldFlag, uint8_t NewFlag,
- llvm::StringRef FileName);
+uint8_t getMipsFpAbiFlag(uint8_t oldFlag, uint8_t newFlag,
+ llvm::StringRef fileName);
-bool isMipsN32Abi(const InputFile *F);
+bool isMipsN32Abi(const InputFile *f);
bool isMicroMips();
bool isMipsR6();
} // namespace elf