forked from OSchip/llvm-project
[ELF] Change few static functions.
Functions hasOutputSegment/maybeGetSOName doesnot need not be static. llvm-svn: 232253
This commit is contained in:
parent
48578e7124
commit
6d812fa9ca
|
@ -193,7 +193,7 @@ public:
|
|||
|
||||
/// \brief Returns true/false depending on whether the section has a Output
|
||||
// segment or not
|
||||
static bool hasOutputSegment(Section<ELFT> *section);
|
||||
bool hasOutputSegment(Section<ELFT> *section);
|
||||
|
||||
// Adds an atom to the section
|
||||
ErrorOr<const lld::AtomLayout *> addAtom(const Atom *atom) override;
|
||||
|
|
|
@ -146,7 +146,7 @@ protected:
|
|||
/// @}
|
||||
|
||||
private:
|
||||
static StringRef maybeGetSOName(Node *node);
|
||||
StringRef maybeGetSOName(Node *node);
|
||||
};
|
||||
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
@ -298,7 +298,7 @@ void OutputELFWriter<ELFT>::assignSectionsWithNoSegments() {
|
|||
_layout.assignFileOffsetsForMiscSections();
|
||||
for (auto sec : _layout.sections())
|
||||
if (auto section = dyn_cast<Section<ELFT>>(sec))
|
||||
if (!DefaultLayout<ELFT>::hasOutputSegment(section))
|
||||
if (!_layout.hasOutputSegment(section))
|
||||
_shdrtab->updateSection(section);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue