Make a pure function a non-member file-scoped function.

llvm-svn: 276524
This commit is contained in:
Rui Ueyama 2016-07-23 14:09:58 +00:00
parent 1271bf9178
commit 36a153cd83
2 changed files with 1 additions and 3 deletions

View File

@ -237,8 +237,7 @@ uint64_t ExprParser::parseExpr1(uint64_t Lhs, int MinPrec) {
// Reads and evaluates an arithmetic expression.
uint64_t ExprParser::parseExpr() { return parseExpr1(parsePrimary(), 0); }
template <class ELFT>
bool LinkerScript<ELFT>::isDiscarded(InputSectionBase<ELFT> *S) {
template <class ELFT> static bool isDiscarded(InputSectionBase<ELFT> *S) {
return !S || !S->Live;
}

View File

@ -119,7 +119,6 @@ public:
createSections(OutputSectionFactory<ELFT> &Factory);
ArrayRef<uint8_t> getFiller(StringRef Name);
bool isDiscarded(InputSectionBase<ELFT> *S);
bool shouldKeep(InputSectionBase<ELFT> *S);
void assignAddresses(ArrayRef<OutputSectionBase<ELFT> *> S);
int compareSections(StringRef A, StringRef B);