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/driver/compiler_options.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'compiler/driver/compiler_options.h') diff --git a/compiler/driver/compiler_options.h b/compiler/driver/compiler_options.h index 0709fafaeb..908ff3302c 100644 --- a/compiler/driver/compiler_options.h +++ b/compiler/driver/compiler_options.h @@ -235,6 +235,10 @@ class CompilerOptions FINAL { return no_inline_from_; } + const std::vector& GetDexFilesForOatFile() const { + return dex_files_for_oat_file_; + } + const HashSet& GetImageClasses() const { return image_classes_; } @@ -313,6 +317,9 @@ class CompilerOptions FINAL { // prefer vector<> over a lookup-oriented container, such as set<>. std::vector no_inline_from_; + // List of dex files associated with the oat file, empty for JIT. + std::vector dex_files_for_oat_file_; + // Image classes, specifies the classes that will be included in the image if creating an image. // Must not be empty for real boot image, only for tests pretending to compile boot image. HashSet image_classes_; -- cgit v1.2.3-59-g8ed1b