diff options
author | 2016-11-17 15:21:22 -0800 | |
---|---|---|
committer | 2016-11-21 10:57:00 -0800 | |
commit | a5b09a67034e57a6e10231dd4bd92f4cb50b824c (patch) | |
tree | 304be738f4fa528b7ad2676103eecc84c79eaeeb /runtime/oat_file.cc | |
parent | dac7ad17c78387d15d7aefae0f852dddf5f37e34 (diff) |
ART: Add dex::TypeIndex
Add abstraction for uint16_t type index.
Test: m test-art-host
Change-Id: I47708741c7c579cbbe59ab723c1e31c5fe71f83a
Diffstat (limited to 'runtime/oat_file.cc')
-rw-r--r-- | runtime/oat_file.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/runtime/oat_file.cc b/runtime/oat_file.cc index c14b6169fb..b120a69642 100644 --- a/runtime/oat_file.cc +++ b/runtime/oat_file.cc @@ -38,6 +38,7 @@ #include "base/stl_util.h" #include "base/systrace.h" #include "base/unix_file/fd_file.h" +#include "dex_file_types.h" #include "elf_file.h" #include "elf_utils.h" #include "gc_root.h" @@ -1342,7 +1343,7 @@ const DexFile::ClassDef* OatFile::OatDexFile::FindClassDef(const DexFile& dex_fi } const DexFile::TypeId* type_id = dex_file.FindTypeId(descriptor); if (type_id != nullptr) { - uint16_t type_idx = dex_file.GetIndexForTypeId(*type_id); + dex::TypeIndex type_idx = dex_file.GetIndexForTypeId(*type_id); return dex_file.FindClassDef(type_idx); } return nullptr; |