diff options
Diffstat (limited to 'compiler/optimizing/liveness_test.cc')
-rw-r--r-- | compiler/optimizing/liveness_test.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/compiler/optimizing/liveness_test.cc b/compiler/optimizing/liveness_test.cc index 1a4d74536b..84b2e33ee7 100644 --- a/compiler/optimizing/liveness_test.cc +++ b/compiler/optimizing/liveness_test.cc @@ -16,6 +16,7 @@ #include "builder.h" #include "code_generator.h" +#include "code_generator_x86.h" #include "dex_file.h" #include "dex_instruction.h" #include "nodes.h" @@ -49,8 +50,8 @@ static void TestCode(const uint16_t* data, const char* expected) { graph->BuildDominatorTree(); graph->TransformToSSA(); graph->FindNaturalLoops(); - CodeGenerator* codegen = CodeGenerator::Create(&allocator, graph, InstructionSet::kX86); - SsaLivenessAnalysis liveness(*graph, codegen); + x86::CodeGeneratorX86 codegen(graph); + SsaLivenessAnalysis liveness(*graph, &codegen); liveness.Analyze(); std::ostringstream buffer; |