diff options
author | 2019-02-19 15:09:35 +0000 | |
---|---|---|
committer | 2019-02-20 10:40:05 +0000 | |
commit | 038924b75f06b91c2a7e944196ca11f118ce182f (patch) | |
tree | fb3073918686ec6f54dce65d2697c0e46f05a272 /compiler/compiler.cc | |
parent | 03c6b174a4e412e9bb62935c4ee15b5445e517f2 (diff) |
ART: Reduce dependencies on CompilerDriver.
Preparation for moving CompilerDriver and other stuff
from libart-compiler.so to dex2oat.
Test: m test-art-host-gtest
Test: testrunner.py --host --optimizing
Change-Id: Ic221ebca4b8c79dd1549316921ace655f2e3f0fe
Diffstat (limited to 'compiler/compiler.cc')
-rw-r--r-- | compiler/compiler.cc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/compiler/compiler.cc b/compiler/compiler.cc index 54da446e6d..d044c2fe4f 100644 --- a/compiler/compiler.cc +++ b/compiler/compiler.cc @@ -22,17 +22,18 @@ #include "base/utils.h" #include "dex/code_item_accessors-inl.h" #include "dex/dex_file.h" -#include "driver/compiler_driver.h" #include "optimizing/optimizing_compiler.h" namespace art { -Compiler* Compiler::Create(CompilerDriver* driver, Compiler::Kind kind) { +Compiler* Compiler::Create(const CompilerOptions& compiler_options, + CompiledMethodStorage* storage, + Compiler::Kind kind) { switch (kind) { case kQuick: // TODO: Remove Quick in options. case kOptimizing: - return CreateOptimizingCompiler(driver); + return CreateOptimizingCompiler(compiler_options, storage); default: LOG(FATAL) << "UNREACHABLE"; |