diff options
author | Andreas Gampe <agampe@google.com> | 2018-12-28 09:39:56 -0800 |
---|---|---|
committer | Andreas Gampe <agampe@google.com> | 2019-01-02 10:32:25 -0800 |
commit | 3f1dcd39e134d994ac88dcc4f30ec8cabcd8decf (patch) | |
tree | 365d20ad6b68ff1dbd4903764b63880324136e4d /libdexfile/dex/dex_file_exception_helpers.cc | |
parent | 0f0a4e40667c87fbd4ae5480eddbfd701bfabfa2 (diff) |
ART: Move dex structs into own header
Separating out the structs from DexFile allows them to be forward-
declared, which reduces the need to include the dex_file header.
Bug: 119869270
Test: m
Change-Id: I32dde5a632884bca7435cd584b4a81883de2e7b4
Diffstat (limited to 'libdexfile/dex/dex_file_exception_helpers.cc')
-rw-r--r-- | libdexfile/dex/dex_file_exception_helpers.cc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/libdexfile/dex/dex_file_exception_helpers.cc b/libdexfile/dex/dex_file_exception_helpers.cc index 8e597fd3dd..72b2554d7f 100644 --- a/libdexfile/dex/dex_file_exception_helpers.cc +++ b/libdexfile/dex/dex_file_exception_helpers.cc @@ -17,6 +17,7 @@ #include "dex_file_exception_helpers.h" #include "code_item_accessors-inl.h" +#include "dex_file_structs.h" namespace art { @@ -29,7 +30,7 @@ CatchHandlerIterator::CatchHandlerIterator(const CodeItemDataAccessor& accessor, case 0: break; case 1: { - const DexFile::TryItem* tries = accessor.TryItems().begin(); + const dex::TryItem* tries = accessor.TryItems().begin(); uint32_t start = tries->start_addr_; if (address >= start) { uint32_t end = start + tries->insn_count_; @@ -40,7 +41,7 @@ CatchHandlerIterator::CatchHandlerIterator(const CodeItemDataAccessor& accessor, break; } default: { - const DexFile::TryItem* try_item = accessor.FindTryItem(address); + const dex::TryItem* try_item = accessor.FindTryItem(address); offset = try_item != nullptr ? try_item->handler_off_ : -1; break; } @@ -49,7 +50,7 @@ CatchHandlerIterator::CatchHandlerIterator(const CodeItemDataAccessor& accessor, } CatchHandlerIterator::CatchHandlerIterator(const CodeItemDataAccessor& accessor, - const DexFile::TryItem& try_item) { + const dex::TryItem& try_item) { handler_.address_ = -1; Init(accessor, try_item.handler_off_); } |