diff options
Diffstat (limited to 'lld/ELF/OutputSections.h')
-rw-r--r-- | lld/ELF/OutputSections.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lld/ELF/OutputSections.h b/lld/ELF/OutputSections.h index cde4aa5..e1634ee 100644 --- a/lld/ELF/OutputSections.h +++ b/lld/ELF/OutputSections.h @@ -93,6 +93,7 @@ public: uintX_t getSize() const { return Header.sh_size; } void setSize(uintX_t Val) { Header.sh_size = Val; } uintX_t getFlags() const { return Header.sh_flags; } + void updateFlags(uintX_t Val) { Header.sh_flags |= Val; } uint32_t getPhdrFlags() const; uintX_t getFileOff() const { return Header.sh_offset; } uintX_t getAlignment() const { return Header.sh_addralign; } @@ -803,6 +804,8 @@ template <class ELFT> class OutputSectionFactory { public: std::pair<OutputSectionBase<ELFT> *, bool> create(InputSectionBase<ELFT> *C, StringRef OutsecName); + std::pair<OutputSectionBase<ELFT> *, bool> + create(const SectionKey<ELFT::Is64Bits> &Key, InputSectionBase<ELFT> *C); private: llvm::SmallDenseMap<Key, OutputSectionBase<ELFT> *> Map; |