diff options
author | Vladimir Marko <vmarko@google.com> | 2018-06-22 11:56:34 +0100 |
---|---|---|
committer | Vladimir Marko <vmarko@google.com> | 2018-06-25 11:41:47 +0100 |
commit | 213ee2da6a1c58d0fc12c937bbd9c9974ca00aca (patch) | |
tree | bfb5d5ed85473054d863bbaa91a7d9a69a803eec /compiler/driver/compiler_options.h | |
parent | dc4bccef0ded1c261bf9838def2ef329765a8682 (diff) |
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
Diffstat (limited to 'compiler/driver/compiler_options.h')
-rw-r--r-- | compiler/driver/compiler_options.h | 7 |
1 files changed, 7 insertions, 0 deletions
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<const DexFile*>& GetDexFilesForOatFile() const { + return dex_files_for_oat_file_; + } + const HashSet<std::string>& GetImageClasses() const { return image_classes_; } @@ -313,6 +317,9 @@ class CompilerOptions FINAL { // prefer vector<> over a lookup-oriented container, such as set<>. std::vector<const DexFile*> no_inline_from_; + // List of dex files associated with the oat file, empty for JIT. + std::vector<const DexFile*> 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<std::string> image_classes_; |