Make a pure function a non-member file-scoped function.
llvm-svn: 276524
This commit is contained in:
parent
1271bf9178
commit
36a153cd83
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue