diff --git a/bolt/include/bolt/Rewrite/RewriteInstance.h b/bolt/include/bolt/Rewrite/RewriteInstance.h --- a/bolt/include/bolt/Rewrite/RewriteInstance.h +++ b/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(); diff --git a/bolt/lib/Rewrite/RewriteInstance.cpp b/bolt/lib/Rewrite/RewriteInstance.cpp --- a/bolt/lib/Rewrite/RewriteInstance.cpp +++ b/bolt/lib/Rewrite/RewriteInstance.cpp @@ -305,6 +305,8 @@ } // namespace bolt } // namespace llvm +using ELF64LEPhdrTy = ELF64LEFile::Elf_Phdr; + namespace { bool refersToReorderedSection(ErrorOr Section) {