summaryrefslogtreecommitdiff
path: root/compiler/compiler.cc
diff options
context:
space:
mode:
Diffstat (limited to 'compiler/compiler.cc')
-rw-r--r--compiler/compiler.cc15
1 files changed, 2 insertions, 13 deletions
diff --git a/compiler/compiler.cc b/compiler/compiler.cc
index 0e040ac54a..9cbd65d89d 100644
--- a/compiler/compiler.cc
+++ b/compiler/compiler.cc
@@ -27,22 +27,11 @@
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,