Index: bolt/include/bolt/Rewrite/RewriteInstance.h =================================================================== --- bolt/include/bolt/Rewrite/RewriteInstance.h +++ bolt/include/bolt/Rewrite/RewriteInstance.h @@ -89,8 +89,6 @@ } private: - using ELF64LEPhdrTy = object::ELF64LEFile::Elf_Phdr; - /// Populate array of binary functions and other objects of interest /// from meta data in the file. void discoverFileObjects(); Index: bolt/lib/Rewrite/RewriteInstance.cpp =================================================================== --- bolt/lib/Rewrite/RewriteInstance.cpp +++ bolt/lib/Rewrite/RewriteInstance.cpp @@ -305,6 +305,8 @@ } // namespace bolt } // namespace llvm +using ELF64LEPhdrTy = ELF64LEFile::Elf_Phdr; + namespace { bool refersToReorderedSection(ErrorOr Section) {