diff options
author | 2015-12-10 13:49:19 +0000 | |
---|---|---|
committer | 2015-12-10 19:42:52 +0000 | |
commit | 49b0f45d5a9023653ab00c355735910aa51ee0ba (patch) | |
tree | 655a013ab75ff1acbeae1e9113b1339f0fd14f2f /compiler/image_test.cc | |
parent | 6d0aefdc1f536e093305e29770cf749acb3247e2 (diff) |
Refactor and clean up OatWriter and Dex2Oat.
This is in preparation for early writing of dex files
to oat file.
Change-Id: I31195f3c94eb8ff676c600c60bd35ae531f457b4
Diffstat (limited to 'compiler/image_test.cc')
-rw-r--r-- | compiler/image_test.cc | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/compiler/image_test.cc b/compiler/image_test.cc index cda6240bd4..c3a31ca42a 100644 --- a/compiler/image_test.cc +++ b/compiler/image_test.cc @@ -113,14 +113,9 @@ TEST_F(ImageTest, WriteRead) { elf_writer->EndText(text); elf_writer->SetBssSize(oat_writer.GetBssSize()); - elf_writer->WriteDynamicSection(); - - ArrayRef<const dwarf::MethodDebugInfo> method_infos(oat_writer.GetMethodDebugInfo()); - elf_writer->WriteDebugInfo(method_infos); - - ArrayRef<const uintptr_t> patch_locations(oat_writer.GetAbsolutePatchLocations()); - elf_writer->WritePatchLocations(patch_locations); + elf_writer->WriteDebugInfo(oat_writer.GetMethodDebugInfo()); + elf_writer->WritePatchLocations(oat_writer.GetAbsolutePatchLocations()); success = elf_writer->End(); |