diff options
| author | 2015-06-30 15:05:03 +0000 | |
|---|---|---|
| committer | 2015-06-30 15:05:04 +0000 | |
| commit | 6d6b30e57bc00d701c92d830ce47f2ee9c20ef00 (patch) | |
| tree | bc3f3ad22ee78ddf92fb3ff2344aa9197c2c1d6c /compiler/common_compiler_test.cc | |
| parent | 3b0667c1d68ba88c71b031757b757dca659afd69 (diff) | |
| parent | bbcc01a5a38d28c221c05788e56473a287f57589 (diff) | |
Merge "Make compiler-related gtests honor ART_USE_OPTIMIZING_COMPILER."
Diffstat (limited to 'compiler/common_compiler_test.cc')
| -rw-r--r-- | compiler/common_compiler_test.cc | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/compiler/common_compiler_test.cc b/compiler/common_compiler_test.cc index 0a1e2e35a6..4b6788429a 100644 --- a/compiler/common_compiler_test.cc +++ b/compiler/common_compiler_test.cc @@ -182,13 +182,11 @@ void CommonCompilerTest::SetUp() { } } - // TODO: make selectable - Compiler::Kind compiler_kind = Compiler::kQuick; timer_.reset(new CumulativeLogger("Compilation times")); compiler_driver_.reset(new CompilerDriver(compiler_options_.get(), verification_results_.get(), method_inliner_map_.get(), - compiler_kind, instruction_set, + compiler_kind_, instruction_set, instruction_set_features_.get(), true, GetImageClasses(), @@ -211,6 +209,14 @@ void CommonCompilerTest::SetUpRuntimeOptions(RuntimeOptions* options) { CompilerCallbacks::CallbackMode::kCompileApp)); } +Compiler::Kind CommonCompilerTest::GetCompilerKind() const { + return compiler_kind_; +} + +void CommonCompilerTest::SetCompilerKind(Compiler::Kind compiler_kind) { + compiler_kind_ = compiler_kind; +} + void CommonCompilerTest::TearDown() { timer_.reset(); compiler_driver_.reset(); |