From a1beb1f8d37e5a02af12d80e59012f68112b3113 Mon Sep 17 00:00:00 2001 From: Logan Chien Date: Fri, 1 Jun 2012 16:03:27 +0800 Subject: Rename CStringComparator to CStringLessThanComparator. Change-Id: Ie44950ebe5c65cd071238fb504769f71f346c729 --- src/compiler_llvm/utils_llvm.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/compiler_llvm/utils_llvm.h') diff --git a/src/compiler_llvm/utils_llvm.h b/src/compiler_llvm/utils_llvm.h index 89a1946cb4..dd35f0a089 100644 --- a/src/compiler_llvm/utils_llvm.h +++ b/src/compiler_llvm/utils_llvm.h @@ -36,6 +36,13 @@ inline static std::string ElfFuncName(uint16_t elf_func_idx) { return StringPrintf("Art%u", static_cast(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_ -- cgit v1.2.3-59-g8ed1b