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/class_accessor.h | |
| parent | 0f0a4e40667c87fbd4ae5480eddbfd701bfabfa2 (diff) | |
| download | art-3f1dcd39e134d994ac88dcc4f30ec8cabcd8decf.tar.gz art-3f1dcd39e134d994ac88dcc4f30ec8cabcd8decf.tar.bz2 art-3f1dcd39e134d994ac88dcc4f30ec8cabcd8decf.zip | |
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/class_accessor.h')
| -rw-r--r-- | libdexfile/dex/class_accessor.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libdexfile/dex/class_accessor.h b/libdexfile/dex/class_accessor.h index bd7b912cb4..cf6e5095d6 100644 --- a/libdexfile/dex/class_accessor.h +++ b/libdexfile/dex/class_accessor.h @@ -99,7 +99,7 @@ class ClassAccessor { CodeItemInstructionAccessor GetInstructions() const; CodeItemDataAccessor GetInstructionsAndData() const; - const DexFile::CodeItem* GetCodeItem() const; + const dex::CodeItem* GetCodeItem() const; bool IsStaticOrDirect() const { return is_static_or_direct_; @@ -266,7 +266,7 @@ class ClassAccessor { ALWAYS_INLINE ClassAccessor(const ClassIteratorData& data); // NOLINT [runtime/explicit] [5] ALWAYS_INLINE ClassAccessor(const DexFile& dex_file, - const DexFile::ClassDef& class_def, + const dex::ClassDef& class_def, bool parse_hiddenapi_class_data = false); ALWAYS_INLINE ClassAccessor(const DexFile& dex_file, uint32_t class_def_index); @@ -277,7 +277,7 @@ class ClassAccessor { bool parse_hiddenapi_class_data = false); // Return the code item for a method. - const DexFile::CodeItem* GetCodeItem(const Method& method) const; + const dex::CodeItem* GetCodeItem(const Method& method) const; // Iterator data is not very iterator friendly, use visitors to get around this. template <typename StaticFieldVisitor, @@ -361,7 +361,7 @@ class ClassAccessor { return class_def_index_; } - const DexFile::ClassDef& GetClassDef() const { + const dex::ClassDef& GetClassDef() const { return dex_file_.GetClassDef(GetClassDefIndex()); } |
