Rename CStringComparator to CStringLessThanComparator.
Change-Id: Ie44950ebe5c65cd071238fb504769f71f346c729
diff --git a/src/compiler_llvm/utils_llvm.h b/src/compiler_llvm/utils_llvm.h
index 89a1946..dd35f0a 100644
--- a/src/compiler_llvm/utils_llvm.h
+++ b/src/compiler_llvm/utils_llvm.h
@@ -36,6 +36,13 @@
return StringPrintf("Art%u", static_cast<unsigned int>(elf_func_idx));
}
+class CStringLessThanComparator {
+ public:
+ bool operator()(const char* lhs, const char* rhs) const {
+ return (strcmp(lhs, rhs) < 0);
+ }
+};
+
} // namespace art
#endif // ART_SRC_UTILS_LLVM_H_