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 /dexlist/dexlist.cc | |
| 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 'dexlist/dexlist.cc')
| -rw-r--r-- | dexlist/dexlist.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/dexlist/dexlist.cc b/dexlist/dexlist.cc index bdf3ca6f11..dd32fae395 100644 --- a/dexlist/dexlist.cc +++ b/dexlist/dexlist.cc @@ -84,7 +84,7 @@ static std::unique_ptr<char[]> descriptorToDot(const char* str) { */ static void dumpMethod(const DexFile* pDexFile, const char* fileName, u4 idx, u4 flags ATTRIBUTE_UNUSED, - const DexFile::CodeItem* pCode, u4 codeOffset) { + const dex::CodeItem* pCode, u4 codeOffset) { // Abstract and native methods don't get listed. if (pCode == nullptr || codeOffset == 0) { return; @@ -92,7 +92,7 @@ static void dumpMethod(const DexFile* pDexFile, CodeItemDebugInfoAccessor accessor(*pDexFile, pCode, idx); // Method information. - const DexFile::MethodId& pMethodId = pDexFile->GetMethodId(idx); + const dex::MethodId& pMethodId = pDexFile->GetMethodId(idx); const char* methodName = pDexFile->StringDataByIdx(pMethodId.name_idx_); const char* classDescriptor = pDexFile->StringByTypeIdx(pMethodId.class_idx_); std::unique_ptr<char[]> className(descriptorToDot(classDescriptor)); @@ -134,7 +134,7 @@ static void dumpMethod(const DexFile* pDexFile, * Runs through all direct and virtual methods in the class. */ void dumpClass(const DexFile* pDexFile, u4 idx) { - const DexFile::ClassDef& class_def = pDexFile->GetClassDef(idx); + const dex::ClassDef& class_def = pDexFile->GetClassDef(idx); const char* fileName = nullptr; if (class_def.source_file_idx_.IsValid()) { |
