summaryrefslogtreecommitdiff
path: root/lld/ELF/Writer.h
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2017-02-24 15:07:30 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2017-02-24 15:07:30 +0000
commita8b1e249d07a38623808f90363508b474871c077 (patch)
tree39a051ee9bf16340dba6223154d110b8d4cc4d0a /lld/ELF/Writer.h
parent8b2b81a7c5307690cc2732e9c100d60a708865c6 (diff)
Merge OutputSectionBase and OutputSection. NFC.
Now that all special sections are SyntheticSections, we only need one OutputSection class.
Diffstat (limited to 'lld/ELF/Writer.h')
-rw-r--r--lld/ELF/Writer.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/lld/ELF/Writer.h b/lld/ELF/Writer.h
index 93ea264d7c1..c1cf149a070 100644
--- a/lld/ELF/Writer.h
+++ b/lld/ELF/Writer.h
@@ -18,20 +18,20 @@
namespace lld {
namespace elf {
class InputFile;
-class OutputSectionBase;
+class OutputSection;
class InputSectionBase;
template <class ELFT> class ObjectFile;
template <class ELFT> class SymbolTable;
template <class ELFT> void writeResult();
template <class ELFT> void markLive();
-template <class ELFT> bool isRelroSection(const OutputSectionBase *Sec);
+template <class ELFT> bool isRelroSection(const OutputSection *Sec);
// 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);
- void add(OutputSectionBase *Sec);
+ void add(OutputSection *Sec);
uint64_t p_paddr = 0;
uint64_t p_vaddr = 0;
@@ -42,16 +42,16 @@ struct PhdrEntry {
uint32_t p_type = 0;
uint32_t p_flags = 0;
- OutputSectionBase *First = nullptr;
- OutputSectionBase *Last = nullptr;
+ OutputSection *First = nullptr;
+ OutputSection *Last = nullptr;
bool HasLMA = false;
};
llvm::StringRef getOutputSectionName(llvm::StringRef Name);
template <class ELFT>
-bool allocateHeaders(std::vector<PhdrEntry> &,
- llvm::ArrayRef<OutputSectionBase *>, uint64_t Min);
+bool allocateHeaders(std::vector<PhdrEntry> &, llvm::ArrayRef<OutputSection *>,
+ uint64_t Min);
template <class ELFT> uint32_t getMipsEFlags();