diff options
Diffstat (limited to 'lib/Core/DefinedAtom.cpp')
-rw-r--r-- | lib/Core/DefinedAtom.cpp | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/lib/Core/DefinedAtom.cpp b/lib/Core/DefinedAtom.cpp index 8dc4d4a16f96..177cae7fcbf0 100644 --- a/lib/Core/DefinedAtom.cpp +++ b/lib/Core/DefinedAtom.cpp @@ -79,16 +79,4 @@ DefinedAtom::ContentPermissions DefinedAtom::permissions(ContentType 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 |