summaryrefslogtreecommitdiff
path: root/runtime/dex_to_dex_decompiler.cc
diff options
context:
space:
mode:
author Mathieu Chartier <mathieuc@google.com> 2018-01-05 11:00:42 -0800
committer Mathieu Chartier <mathieuc@google.com> 2018-01-08 09:11:49 -0800
commit698ebbca3c54d17c696e87b9e5838df6a5ac9b08 (patch)
tree7887b2cd4662410114f205bbe1896ff094d51407 /runtime/dex_to_dex_decompiler.cc
parent4b9a11f1d43df69c50e93ba1793fce1c2216682b (diff)
Clean up CodeItemAccessors and Compact/StandardDexFile
Change constructor to use a reference to a dex file. Remove duplicated logic for GetCodeItemSize. Bug: 63756964 Test: test-art-host Change-Id: I69af8b93abdf6bdfa4454e16db8f4e75883bca46
Diffstat (limited to 'runtime/dex_to_dex_decompiler.cc')
-rw-r--r--runtime/dex_to_dex_decompiler.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/dex_to_dex_decompiler.cc b/runtime/dex_to_dex_decompiler.cc
index f3f2d52cb4..e1c07baede 100644
--- a/runtime/dex_to_dex_decompiler.cc
+++ b/runtime/dex_to_dex_decompiler.cc
@@ -35,7 +35,7 @@ class DexDecompiler {
const DexFile::CodeItem& code_item,
const ArrayRef<const uint8_t>& quickened_info,
bool decompile_return_instruction)
- : code_item_accessor_(&dex_file, &code_item),
+ : code_item_accessor_(dex_file, &code_item),
quicken_info_(quickened_info.data()),
quicken_info_number_of_indices_(QuickenInfoTable::NumberOfIndices(quickened_info.size())),
decompile_return_instruction_(decompile_return_instruction) {}