aboutsummaryrefslogtreecommitdiffstats
path: root/symtab.h
diff options
context:
space:
mode:
authorShinichiro Hamaji <shinichiro.hamaji@gmail.com>2015-10-03 10:57:31 +0900
committerShinichiro Hamaji <shinichiro.hamaji@gmail.com>2015-10-03 10:57:31 +0900
commit675ecf36bf43f8743705af7d12dbc3d315462a06 (patch)
tree5384aafe017644cc202fbec6b22b4c74b29248be /symtab.h
parent70490977113762fde74c88116a086422e7bc9213 (diff)
downloadandroid_build_kati-675ecf36bf43f8743705af7d12dbc3d315462a06.tar.gz
android_build_kati-675ecf36bf43f8743705af7d12dbc3d315462a06.tar.bz2
android_build_kati-675ecf36bf43f8743705af7d12dbc3d315462a06.zip
[C++] Speed up set<Symbol> by using integer value of Symbol
Diffstat (limited to 'symtab.h')
-rw-r--r--symtab.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/symtab.h b/symtab.h
index 6ebe027..9d8a120 100644
--- a/symtab.h
+++ b/symtab.h
@@ -67,7 +67,7 @@ inline bool operator==(const Symbol& x, const Symbol& y) {
}
inline bool operator<(const Symbol& x, const Symbol& y) {
- return x.str() < y.str();
+ return x.val() < y.val();
}
namespace std {