From 213ee2da6a1c58d0fc12c937bbd9c9974ca00aca Mon Sep 17 00:00:00 2001 From: Vladimir Marko Date: Fri, 22 Jun 2018 11:56:34 +0100 Subject: Move dex_files_for_oat_file_ to CompilerOptions. A step toward removing the CompilerDriver dependency from several classes, including HSharpening and ImageWriter. Test: m test-art-host-gtest Test: testrunner.py --host --optimizing Change-Id: I364ef66511fdf855cb11b12c818a40572b037727 --- compiler/common_compiler_test.cc | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'compiler/common_compiler_test.cc') diff --git a/compiler/common_compiler_test.cc b/compiler/common_compiler_test.cc index 7491173ed6..52c767f935 100644 --- a/compiler/common_compiler_test.cc +++ b/compiler/common_compiler_test.cc @@ -40,6 +40,7 @@ #include "oat_quick_method_header.h" #include "scoped_thread_state_change-inl.h" #include "thread-current-inl.h" +#include "utils/atomic_dex_ref_map-inl.h" namespace art { @@ -332,4 +333,10 @@ void CommonCompilerTest::UnreserveImageSpace() { image_reservation_.reset(); } +void CommonCompilerTest::SetDexFilesForOatFile(const std::vector& dex_files) { + compiler_options_->dex_files_for_oat_file_ = dex_files; + compiler_driver_->compiled_classes_.AddDexFiles(dex_files); + compiler_driver_->dex_to_dex_compiler_.SetDexFiles(dex_files); +} + } // namespace art -- cgit v1.2.3-59-g8ed1b