summaryrefslogtreecommitdiff
path: root/compiler/driver/dex_compilation_unit.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 /compiler/driver/dex_compilation_unit.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 'compiler/driver/dex_compilation_unit.cc')
-rw-r--r--compiler/driver/dex_compilation_unit.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/compiler/driver/dex_compilation_unit.cc b/compiler/driver/dex_compilation_unit.cc
index 1fe30de355..28e68c94df 100644
--- a/compiler/driver/dex_compilation_unit.cc
+++ b/compiler/driver/dex_compilation_unit.cc
@@ -40,8 +40,7 @@ DexCompilationUnit::DexCompilationUnit(Handle<mirror::ClassLoader> class_loader,
access_flags_(access_flags),
verified_method_(verified_method),
dex_cache_(dex_cache),
- code_item_accessor_(&dex_file, code_item) {
-}
+ code_item_accessor_(dex_file, code_item) {}
const std::string& DexCompilationUnit::GetSymbol() {
if (symbol_.empty()) {