diff options
author | 2018-01-05 17:36:37 +0000 | |
---|---|---|
committer | 2018-01-05 17:36:37 +0000 | |
commit | daa27bcedade7ff2ee50fbdcbec11a4291b447ee (patch) | |
tree | 9b99a0a2c20052ab253e81dd6270cf06eb142865 /runtime/dex_to_dex_decompiler.cc | |
parent | 70a58af9c733bc14c4573dddd282b3c02ccf4985 (diff) | |
parent | 6238c8331bf89ce35a377c6475034243a0791f28 (diff) |
Merge "Remove DexFile direct accesses to CodeItem"
Diffstat (limited to 'runtime/dex_to_dex_decompiler.cc')
-rw-r--r-- | runtime/dex_to_dex_decompiler.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/runtime/dex_to_dex_decompiler.cc b/runtime/dex_to_dex_decompiler.cc index dc7e11bc19..7f36c4e1ce 100644 --- a/runtime/dex_to_dex_decompiler.cc +++ b/runtime/dex_to_dex_decompiler.cc @@ -31,11 +31,11 @@ namespace optimizer { class DexDecompiler { public: - DexDecompiler(const DexFile* dex_file, + DexDecompiler(const DexFile& dex_file, 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) {} @@ -196,7 +196,7 @@ bool DexDecompiler::Decompile() { return true; } -bool ArtDecompileDEX(const DexFile* dex_file, +bool ArtDecompileDEX(const DexFile& dex_file, const DexFile::CodeItem& code_item, const ArrayRef<const uint8_t>& quickened_info, bool decompile_return_instruction) { |