summaryrefslogtreecommitdiff
path: root/src/compiler_llvm
diff options
context:
space:
mode:
author Elliott Hughes <enh@google.com> 2012-04-14 11:46:01 -0700
committer Android (Google) Code Review <android-gerrit@google.com> 2012-04-14 11:46:01 -0700
commit42f302c1da4cf1abf935d7aee29ece8d90441e0c (patch)
tree1313bbbf93b2983e4046c5eaf023c48377e7fb9a /src/compiler_llvm
parent33687790adbb889abdd95bb22914acb57ce6e68c (diff)
parenta0e180632411f7fe0edf454e571c42209ee7b540 (diff)
Merge "Add a SafeMap equivalent to std::map but without the error-prone operator[]." into ics-mr1-plus-art
Diffstat (limited to 'src/compiler_llvm')
-rw-r--r--src/compiler_llvm/inferred_reg_category_map.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/compiler_llvm/inferred_reg_category_map.h b/src/compiler_llvm/inferred_reg_category_map.h
index f05627430e..14bc05286a 100644
--- a/src/compiler_llvm/inferred_reg_category_map.h
+++ b/src/compiler_llvm/inferred_reg_category_map.h
@@ -21,7 +21,8 @@
#include <stdint.h>
#include <vector>
-#include <map>
+
+#include "safe_map.h"
namespace art {
namespace compiler_llvm {
@@ -31,8 +32,7 @@ class InferredRegCategoryMap {
private:
class RegCategoryLine {
private:
- // TODO: Use hashmap (unordered_map).
- typedef std::map<uint16_t, uint8_t> Table;
+ typedef SafeMap<uint16_t, uint8_t> Table;
Table reg_category_line_;
public: