diff options
| author | Orion Hodson <oth@google.com> | 2018-05-25 15:33:44 +0100 |
|---|---|---|
| committer | Orion Hodson <oth@google.com> | 2018-05-25 15:33:44 +0100 |
| commit | 0f6cc7fc009a006f0dcecca67e3a13c94d503f3f (patch) | |
| tree | 81b4333bb2e6a4b0868ddcda0885307aaf23ea6f /dexdump | |
| parent | a326807d1ac1e37798c928911777c9d7c1d7ab4d (diff) | |
| download | art-0f6cc7fc009a006f0dcecca67e3a13c94d503f3f.tar.gz art-0f6cc7fc009a006f0dcecca67e3a13c94d503f3f.tar.bz2 art-0f6cc7fc009a006f0dcecca67e3a13c94d503f3f.zip | |
Dexdump: fix type printing for call sites
Test: art/test/dexdump/run-all-tests
Change-Id: I0a8eabd413ad6f26946af26946bc163e65d1d001
Diffstat (limited to 'dexdump')
| -rw-r--r-- | dexdump/dexdump.cc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/dexdump/dexdump.cc b/dexdump/dexdump.cc index f5a13f0920..85778b6411 100644 --- a/dexdump/dexdump.cc +++ b/dexdump/dexdump.cc @@ -1773,9 +1773,8 @@ static void dumpCallSite(const DexFile* pDexFile, u4 idx) { case EncodedArrayValueIterator::ValueType::kType: { type = "Class"; dex::TypeIndex type_idx = static_cast<dex::TypeIndex>(it.GetJavaValue().i); - const DexFile::ClassDef* class_def = pDexFile->FindClassDef(type_idx); - value = pDexFile->GetClassDescriptor(*class_def); - value = descriptorClassToDot(value.c_str()).get(); + const DexFile::TypeId& type_id = pDexFile->GetTypeId(type_idx); + value = pDexFile->GetTypeDescriptor(type_id); break; } case EncodedArrayValueIterator::ValueType::kField: |
