From a0e180632411f7fe0edf454e571c42209ee7b540 Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Fri, 13 Apr 2012 15:59:59 -0700 Subject: Add a SafeMap equivalent to std::map but without the error-prone operator[]. Change-Id: Iae5ba2091c55a34dbd1005cf3d25fce2a8d5c1f9 --- src/compiler/CompilerIR.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/compiler/CompilerIR.h') diff --git a/src/compiler/CompilerIR.h b/src/compiler/CompilerIR.h index 0fc26dea4c..88593bd09e 100644 --- a/src/compiler/CompilerIR.h +++ b/src/compiler/CompilerIR.h @@ -17,10 +17,12 @@ #ifndef ART_SRC_COMPILER_COMPILER_IR_H_ #define ART_SRC_COMPILER_COMPILER_IR_H_ +#include + #include "codegen/Optimizer.h" #include "CompilerUtility.h" -#include #include "oat_compilation_unit.h" +#include "safe_map.h" namespace art { @@ -519,8 +521,8 @@ struct CompilationUnit { const u2* insns; u4 insnsSize; bool disableDataflow; // Skip dataflow analysis if possible - std::map blockMap; // findBlock lookup cache - std::map boundaryMap; // boundary lookup cache + SafeMap blockMap; // findBlock lookup cache + SafeMap boundaryMap; // boundary lookup cache int defCount; // Used to estimate number of SSA names // If non-empty, apply optimizer/debug flags only to matching methods. -- cgit v1.2.3-59-g8ed1b