summaryrefslogtreecommitdiff
path: root/tools/llvm-objcopy
diff options
context:
space:
mode:
authorAlexander Shaposhnikov <shal1t712@gmail.com>2018-02-24 00:41:01 +0000
committerAlexander Shaposhnikov <shal1t712@gmail.com>2018-02-24 00:41:01 +0000
commitb4ef46d3c75a9781f9af10ebdd55dce5dbdf866d (patch)
tree490258725ee40ff29a4a2be55384a985a178ace3 /tools/llvm-objcopy
parent62779f87d523d09b5d1c598b48787c91622a5c17 (diff)
[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
Diffstat (limited to 'tools/llvm-objcopy')
-rw-r--r--tools/llvm-objcopy/Object.h5
1 files changed, 3 insertions, 2 deletions
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<std::unique_ptr<Symbol>> Symbols;
StringTableSection *SymbolNames = nullptr;
@@ -350,7 +352,6 @@ protected:
using SymPtr = std::unique_ptr<Symbol>;
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 SymTabType>
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;