diff options
| author | Rui Ueyama <ruiu@google.com> | 2017-10-06 21:42:37 +0000 |
|---|---|---|
| committer | Rui Ueyama <ruiu@google.com> | 2017-10-06 21:42:37 +0000 |
| commit | 40bd97af348b2f6d45dae469c4a206aed5bd41fa (patch) | |
| tree | 95d8f52b0083c28005e9578b7d48da51d6502862 | |
| parent | 5a8928c605a579ddb26bb46b933b451e7161a1b9 (diff) | |
| download | bcm5719-llvm-40bd97af348b2f6d45dae469c4a206aed5bd41fa.tar.gz bcm5719-llvm-40bd97af348b2f6d45dae469c4a206aed5bd41fa.zip | |
Make a few member varaibles/functions private.
llvm-svn: 315115
| -rw-r--r-- | lld/ELF/OutputSections.h | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/lld/ELF/OutputSections.h b/lld/ELF/OutputSections.h index 948ab8de3f1..dbe6c16dbc9 100644 --- a/lld/ELF/OutputSections.h +++ b/lld/ELF/OutputSections.h @@ -84,10 +84,6 @@ public: void addSection(InputSection *S); - // Used for implementation of --compress-debug-sections option. - std::vector<uint8_t> ZDebugHeader; - llvm::SmallVector<char, 1> CompressedData; - // Location in the output buffer. uint8_t *Loc = nullptr; @@ -108,11 +104,17 @@ public: template <class ELFT> void finalize(); template <class ELFT> void writeTo(uint8_t *Buf); template <class ELFT> void maybeCompress(); - uint32_t getFiller(); void sort(std::function<int(InputSectionBase *S)> Order); void sortInitFini(); void sortCtorsDtors(); + +private: + // Used for implementation of --compress-debug-sections option. + std::vector<uint8_t> ZDebugHeader; + llvm::SmallVector<char, 1> CompressedData; + + uint32_t getFiller(); }; int getPriority(StringRef S); @@ -140,6 +142,7 @@ struct SectionKey { }; } // namespace elf } // namespace lld + namespace llvm { template <> struct DenseMapInfo<lld::elf::SectionKey> { static lld::elf::SectionKey getEmptyKey(); @@ -149,9 +152,9 @@ template <> struct DenseMapInfo<lld::elf::SectionKey> { const lld::elf::SectionKey &RHS); }; } // namespace llvm + namespace lld { namespace elf { - // This class knows how to create an output section for a given // input section. Output section type is determined by various // factors, including input section's sh_flags, sh_type and |

