[lld] r277760 - [MachO/Core] Remove (now) unused static member function. NFCI.
Davide Italiano via llvm-commits
llvm-commits at lists.llvm.org
Thu Aug 4 12:49:11 PDT 2016
Author: davide
Date: Thu Aug 4 14:49:11 2016
New Revision: 277760
URL: http://llvm.org/viewvc/llvm-project?rev=277760&view=rev
Log:
[MachO/Core] Remove (now) unused static member function. NFCI.
Modified:
lld/trunk/include/lld/Core/DefinedAtom.h
lld/trunk/lib/Core/DefinedAtom.cpp
Modified: lld/trunk/include/lld/Core/DefinedAtom.h
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/include/lld/Core/DefinedAtom.h?rev=277760&r1=277759&r2=277760&view=diff
==============================================================================
--- lld/trunk/include/lld/Core/DefinedAtom.h (original)
+++ lld/trunk/include/lld/Core/DefinedAtom.h Thu Aug 4 14:49:11 2016
@@ -354,10 +354,6 @@ public:
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:
// DefinedAtom is an abstract base class. Only subclasses can access
// constructor.
Modified: lld/trunk/lib/Core/DefinedAtom.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/lib/Core/DefinedAtom.cpp?rev=277760&r1=277759&r2=277760&view=diff
==============================================================================
--- lld/trunk/lib/Core/DefinedAtom.cpp (original)
+++ lld/trunk/lib/Core/DefinedAtom.cpp Thu Aug 4 14:49:11 2016
@@ -79,16 +79,4 @@ DefinedAtom::ContentPermissions DefinedA
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
More information about the llvm-commits
mailing list