summaryrefslogtreecommitdiff
path: root/src/compiler_llvm/utils_llvm.h
diff options
context:
space:
mode:
author Logan Chien <loganchien@google.com> 2012-06-01 16:03:27 +0800
committer Shih-wei Liao <sliao@google.com> 2012-06-06 21:12:48 -0700
commita1beb1f8d37e5a02af12d80e59012f68112b3113 (patch)
tree38eee5d1a143ce32530dda291b194c77e0d62989 /src/compiler_llvm/utils_llvm.h
parentfc6c5fde1b7cd0b8f06af2626bf7c597232f478d (diff)
Rename CStringComparator to CStringLessThanComparator.
Change-Id: Ie44950ebe5c65cd071238fb504769f71f346c729
Diffstat (limited to 'src/compiler_llvm/utils_llvm.h')
-rw-r--r--src/compiler_llvm/utils_llvm.h7
1 files changed, 7 insertions, 0 deletions
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<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_