Index: ELF/OutputSections.h =================================================================== --- ELF/OutputSections.h +++ ELF/OutputSections.h @@ -316,6 +316,7 @@ typedef typename llvm::object::ELFFile::Elf_Rel Elf_Rel; typedef typename llvm::object::ELFFile::Elf_Rela Elf_Rela; typedef typename llvm::object::ELFFile::Elf_Sym Elf_Sym; + typedef typename llvm::object::ELFFile::Elf_Dyn Elf_Dyn; public: DynamicSection(SymbolTable &SymTab, HashTableSection &HashSec, Index: ELF/OutputSections.cpp =================================================================== --- ELF/OutputSections.cpp +++ ELF/OutputSections.cpp @@ -216,8 +216,6 @@ } template void DynamicSection::writeTo(uint8_t *Buf) { - typedef typename std::conditional::type - Elf_Dyn; auto *P = reinterpret_cast(Buf); if (RelaDynSec.hasRelocs()) {