[ELF] Change few static functions.

Functions hasOutputSegment/maybeGetSOName doesnot need not be static.

llvm-svn: 232253
This commit is contained in:
Shankar Easwaran 2015-03-14 05:27:01 +00:00
parent 48578e7124
commit 6d812fa9ca
2 changed files with 3 additions and 3 deletions

View File

@ -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;

View File

@ -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);
}