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.h | |
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.h')
-rw-r--r-- | libdexfile/dex/dex_file_exception_helpers.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/libdexfile/dex/dex_file_exception_helpers.h b/libdexfile/dex/dex_file_exception_helpers.h index a05fd68e86..08127c865d 100644 --- a/libdexfile/dex/dex_file_exception_helpers.h +++ b/libdexfile/dex/dex_file_exception_helpers.h @@ -17,17 +17,23 @@ #ifndef ART_LIBDEXFILE_DEX_DEX_FILE_EXCEPTION_HELPERS_H_ #define ART_LIBDEXFILE_DEX_DEX_FILE_EXCEPTION_HELPERS_H_ -#include "dex_file.h" +#include <android-base/logging.h> + +#include "dex_file_types.h" namespace art { +namespace dex { +struct TryItem; +} // namespace dex + class CodeItemDataAccessor; class CatchHandlerIterator { public: CatchHandlerIterator(const CodeItemDataAccessor& accessor, uint32_t address); - CatchHandlerIterator(const CodeItemDataAccessor& accessor, const DexFile::TryItem& try_item); + CatchHandlerIterator(const CodeItemDataAccessor& accessor, const dex::TryItem& try_item); explicit CatchHandlerIterator(const uint8_t* handler_data) { Init(handler_data); |