forked from OSchip/llvm-project
[MachO/Core] Remove (now) unused static member function. NFCI.
llvm-svn: 277760
This commit is contained in:
parent
86c052238a
commit
6bb5d2ddd3
|
|
@ -354,10 +354,6 @@ public:
|
||||||
return atomContentType == typeCFI;
|
return atomContentType == typeCFI;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Returns true if lhs should be placed before rhs in the final output.
|
|
||||||
static bool compareByPosition(const DefinedAtom *lhs,
|
|
||||||
const DefinedAtom *rhs);
|
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
// DefinedAtom is an abstract base class. Only subclasses can access
|
// DefinedAtom is an abstract base class. Only subclasses can access
|
||||||
// constructor.
|
// constructor.
|
||||||
|
|
|
||||||
|
|
@ -79,16 +79,4 @@ DefinedAtom::ContentPermissions DefinedAtom::permissions(ContentType type) {
|
||||||
llvm_unreachable("unknown content type");
|
llvm_unreachable("unknown content type");
|
||||||
}
|
}
|
||||||
|
|
||||||
bool DefinedAtom::compareByPosition(const DefinedAtom *lhs,
|
|
||||||
const DefinedAtom *rhs) {
|
|
||||||
if (lhs == rhs)
|
|
||||||
return false;
|
|
||||||
const File *lhsFile = &lhs->file();
|
|
||||||
const File *rhsFile = &rhs->file();
|
|
||||||
if (lhsFile->ordinal() != rhsFile->ordinal())
|
|
||||||
return lhsFile->ordinal() < rhsFile->ordinal();
|
|
||||||
assert(lhs->ordinal() != rhs->ordinal());
|
|
||||||
return lhs->ordinal() < rhs->ordinal();
|
|
||||||
}
|
|
||||||
|
|
||||||
} // namespace
|
} // namespace
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue