diff options
Diffstat (limited to 'compiler/compiler.cc')
| -rw-r--r-- | compiler/compiler.cc | 17 |
1 files changed, 3 insertions, 14 deletions
diff --git a/compiler/compiler.cc b/compiler/compiler.cc index e2587c1253..9cbd65d89d 100644 --- a/compiler/compiler.cc +++ b/compiler/compiler.cc @@ -22,27 +22,16 @@ #include "base/utils.h" #include "dex/code_item_accessors-inl.h" #include "dex/dex_file.h" -#include "oat.h" +#include "oat/oat.h" #include "optimizing/optimizing_compiler.h" namespace art HIDDEN { -Compiler* Compiler::Create(const CompilerOptions& compiler_options, - CompiledCodeStorage* storage, - Compiler::Kind kind) { +Compiler* Compiler::Create(const CompilerOptions& compiler_options, CompiledCodeStorage* storage) { // Check that oat version when runtime was compiled matches the oat version of the compiler. constexpr std::array<uint8_t, 4> compiler_oat_version = OatHeader::kOatVersion; OatHeader::CheckOatVersion(compiler_oat_version); - switch (kind) { - case kQuick: - // TODO: Remove Quick in options. - case kOptimizing: - return CreateOptimizingCompiler(compiler_options, storage); - - default: - LOG(FATAL) << "UNREACHABLE"; - UNREACHABLE(); - } + return CreateOptimizingCompiler(compiler_options, storage); } bool Compiler::IsPathologicalCase(const dex::CodeItem& code_item, |