diff options
author | Nathan Sidwell <nathan@acm.org> | 2023-04-18 18:14:21 -0400 |
---|---|---|
committer | Nathan Sidwell <nathan@acm.org> | 2023-04-19 15:51:17 -0400 |
commit | 9c92b023da39903413128dbbf30c1029f3b172c1 (patch) | |
tree | 25da63053287f6e2a645007c749767326ebcaf3d /bolt | |
parent | f2f0411924184ca59911b3abebb564e22b569f40 (diff) | |
download | llvm-9c92b023da39903413128dbbf30c1029f3b172c1.tar.gz |
[BOLT][NFC] Move phdr typedef to cpp file
This typedef is only used inside the RewriteInstance source file, let's not
expose it in the header file -- even if private.
Differential Revision: https://reviews.llvm.org/D148667
Diffstat (limited to 'bolt')
-rw-r--r-- | bolt/include/bolt/Rewrite/RewriteInstance.h | 2 | ||||
-rw-r--r-- | bolt/lib/Rewrite/RewriteInstance.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/bolt/include/bolt/Rewrite/RewriteInstance.h b/bolt/include/bolt/Rewrite/RewriteInstance.h index 7e4f7c3e2187..6097932d9e6f 100644 --- a/bolt/include/bolt/Rewrite/RewriteInstance.h +++ b/bolt/include/bolt/Rewrite/RewriteInstance.h @@ -89,8 +89,6 @@ public: } 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 index 9e38736d147d..296f56ea3b69 100644 --- a/bolt/lib/Rewrite/RewriteInstance.cpp +++ b/bolt/lib/Rewrite/RewriteInstance.cpp @@ -305,6 +305,8 @@ MCPlusBuilder *createMCPlusBuilder(const Triple::ArchType Arch, } // namespace bolt } // namespace llvm +using ELF64LEPhdrTy = ELF64LEFile::Elf_Phdr; + namespace { bool refersToReorderedSection(ErrorOr<BinarySection &> Section) { |