From b4ef46d3c75a9781f9af10ebdd55dce5dbdf866d Mon Sep 17 00:00:00 2001 From: Alexander Shaposhnikov Date: Sat, 24 Feb 2018 00:41:01 +0000 Subject: [llvm-objcopy] Fix typo in setSymTab This diff fixes the name of the argument of setSymTab and makes setSymTab/setStrTab private (to make the public interface a bit cleaner). Test plan: make check-all Differential revision: https://reviews.llvm.org/D43661 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@326005 91177308-0d34-0410-b5e6-96231b3b80d8 --- tools/llvm-objcopy/Object.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'tools/llvm-objcopy') diff --git a/tools/llvm-objcopy/Object.h b/tools/llvm-objcopy/Object.h index 88357ad82c2..27beafc0ce6 100644 --- a/tools/llvm-objcopy/Object.h +++ b/tools/llvm-objcopy/Object.h @@ -343,6 +343,8 @@ struct Symbol { class SymbolTableSection : public SectionBase { MAKE_SEC_WRITER_FRIEND + void setStrTab(StringTableSection *StrTab) { SymbolNames = StrTab; } + protected: std::vector> Symbols; StringTableSection *SymbolNames = nullptr; @@ -350,7 +352,6 @@ protected: using SymPtr = std::unique_ptr; public: - void setStrTab(StringTableSection *StrTab) { SymbolNames = StrTab; } void addSymbol(StringRef Name, uint8_t Bind, uint8_t Type, SectionBase *DefinedIn, uint64_t Value, uint8_t Visibility, uint16_t Shndx, uint64_t Sz); @@ -403,12 +404,12 @@ template class RelocSectionWithSymtabBase : public RelocationSectionBase { private: SymTabType *Symbols = nullptr; + void setSymTab(SymTabType *SymTab) { Symbols = SymTab; } protected: RelocSectionWithSymtabBase() = default; public: - void setSymTab(SymTabType *StrTab) { Symbols = StrTab; } void removeSectionReferences(const SectionBase *Sec) override; void initialize(SectionTableRef SecTable) override; void finalize() override; -- cgit v1.2.3