diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2016-07-19 12:33:46 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2016-07-19 12:33:46 +0000 |
commit | 74df5c7eeb444b8a392939ea9302dc16b2d01c0e (patch) | |
tree | 5925f3575e98f2cebf27bd968c98afd661b0f530 | |
parent | 766345e3312b71b3c33deb6747705810ecfd0d17 (diff) | |
download | bcm5719-llvm-74df5c7eeb444b8a392939ea9302dc16b2d01c0e.tar.gz bcm5719-llvm-74df5c7eeb444b8a392939ea9302dc16b2d01c0e.zip |
Fix build with gcc 6.
llvm-svn: 275972
-rw-r--r-- | lld/ELF/LinkerScript.cpp | 2 | ||||
-rw-r--r-- | lld/ELF/LinkerScript.h | 2 | ||||
-rw-r--r-- | lld/ELF/Writer.cpp | 14 | ||||
-rw-r--r-- | lld/ELF/Writer.h | 4 |
4 files changed, 11 insertions, 11 deletions
diff --git a/lld/ELF/LinkerScript.cpp b/lld/ELF/LinkerScript.cpp index 28f60ca1acc..e56e1a2ce4a 100644 --- a/lld/ELF/LinkerScript.cpp +++ b/lld/ELF/LinkerScript.cpp @@ -275,7 +275,7 @@ void LinkerScript<ELFT>::assignAddresses( } template <class ELFT> -std::vector<Phdr<ELFT>> +std::vector<PhdrEntry<ELFT>> LinkerScript<ELFT>::createPhdrs(ArrayRef<OutputSectionBase<ELFT> *> Sections) { int TlsNum = -1; int NoteNum = -1; diff --git a/lld/ELF/LinkerScript.h b/lld/ELF/LinkerScript.h index 4ff71508d2a..90bb811ec8a 100644 --- a/lld/ELF/LinkerScript.h +++ b/lld/ELF/LinkerScript.h @@ -87,7 +87,7 @@ template <class ELFT> class LinkerScript { typedef typename ELFT::uint uintX_t; public: - typedef Phdr<ELFT> Phdr; + typedef PhdrEntry<ELFT> Phdr; StringRef getOutputSection(InputSectionBase<ELFT> *S); ArrayRef<uint8_t> getFiller(StringRef Name); diff --git a/lld/ELF/Writer.cpp b/lld/ELF/Writer.cpp index 784e1828601..0c6bd0dbf7a 100644 --- a/lld/ELF/Writer.cpp +++ b/lld/ELF/Writer.cpp @@ -44,7 +44,7 @@ public: void run(); private: - typedef Phdr<ELFT> Phdr; + typedef PhdrEntry<ELFT> Phdr; void copyLocalSymbols(); void addReservedSymbols(); @@ -479,13 +479,13 @@ template <class ELFT> bool elf::isOutputDynamic() { // Program header entry template<class ELFT> -Phdr<ELFT>::Phdr(unsigned Type, unsigned Flags) { +PhdrEntry<ELFT>::PhdrEntry(unsigned Type, unsigned Flags) { H.p_type = Type; H.p_flags = Flags; } template<class ELFT> -void Phdr<ELFT>::AddSec(OutputSectionBase<ELFT> *Sec) { +void PhdrEntry<ELFT>::AddSec(OutputSectionBase<ELFT> *Sec) { Last = Sec; if (!First) First = Sec; @@ -1285,10 +1285,10 @@ template void elf::writeResult<ELF32BE>(SymbolTable<ELF32BE> *Symtab); template void elf::writeResult<ELF64LE>(SymbolTable<ELF64LE> *Symtab); template void elf::writeResult<ELF64BE>(SymbolTable<ELF64BE> *Symtab); -template struct elf::Phdr<ELF32LE>; -template struct elf::Phdr<ELF32BE>; -template struct elf::Phdr<ELF64LE>; -template struct elf::Phdr<ELF64BE>; +template struct elf::PhdrEntry<ELF32LE>; +template struct elf::PhdrEntry<ELF32BE>; +template struct elf::PhdrEntry<ELF64LE>; +template struct elf::PhdrEntry<ELF64BE>; template bool elf::needsInterpSection<ELF32LE>(); template bool elf::needsInterpSection<ELF32BE>(); diff --git a/lld/ELF/Writer.h b/lld/ELF/Writer.h index ec7a2eb6d59..256d74bf431 100644 --- a/lld/ELF/Writer.h +++ b/lld/ELF/Writer.h @@ -35,8 +35,8 @@ uint32_t toPhdrFlags(uint64_t Flags); // Each contains type, access flags and range of output sections that will be // placed in it. template<class ELFT> -struct Phdr { - Phdr(unsigned Type, unsigned Flags); +struct PhdrEntry { + PhdrEntry(unsigned Type, unsigned Flags); void AddSec(OutputSectionBase<ELFT> *Sec); typename ELFT::Phdr H = {}; |