diff options
| author | 2015-02-25 00:26:04 +0000 | |
|---|---|---|
| committer | 2015-02-25 00:26:06 +0000 | |
| commit | 17b01497b29f980a3d515a01adcb5f47df67ac63 (patch) | |
| tree | 40cbc6d30e02ab5edd8598d0f811b62f5c6045ba /compiler/optimizing/optimizing_compiler.cc | |
| parent | 354d58ba776866ea7b1c71f0d0848d5aaa013ae3 (diff) | |
| parent | 7c3952f423b8213083d60596a5f0bf4237ca3f7b (diff) | |
Merge "ART: Add -Wunused"
Diffstat (limited to 'compiler/optimizing/optimizing_compiler.cc')
| -rw-r--r-- | compiler/optimizing/optimizing_compiler.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/compiler/optimizing/optimizing_compiler.cc b/compiler/optimizing/optimizing_compiler.cc index 2fef8c7b3a..eb984248a9 100644 --- a/compiler/optimizing/optimizing_compiler.cc +++ b/compiler/optimizing/optimizing_compiler.cc @@ -56,7 +56,7 @@ namespace art { */ class CodeVectorAllocator FINAL : public CodeAllocator { public: - CodeVectorAllocator() {} + CodeVectorAllocator() : size_(0) {} virtual uint8_t* Allocate(size_t size) { size_ = size; @@ -361,11 +361,11 @@ CompiledMethod* OptimizingCompiler::CompileOptimized(HGraph* graph, PrepareForRegisterAllocation(graph).Run(); SsaLivenessAnalysis liveness(*graph, codegen); { - PassInfo pass_info(kLivenessPassName, pass_info_printer); + PassInfo pass_info(SsaLivenessAnalysis::kLivenessPassName, pass_info_printer); liveness.Analyze(); } { - PassInfo pass_info(kRegisterAllocatorPassName, pass_info_printer); + PassInfo pass_info(RegisterAllocator::kRegisterAllocatorPassName, pass_info_printer); RegisterAllocator(graph->GetArena(), codegen, liveness).AllocateRegisters(); } @@ -495,7 +495,7 @@ CompiledMethod* OptimizingCompiler::Compile(const DexFile::CodeItem* code_item, VLOG(compiler) << "Building " << method_name; { - PassInfo pass_info(kBuilderPassName, &pass_info_printer); + PassInfo pass_info(HGraphBuilder::kBuilderPassName, &pass_info_printer); if (!builder.BuildGraph(*code_item)) { CHECK(!shouldCompile) << "Could not build graph in optimizing compiler"; return nullptr; @@ -508,7 +508,7 @@ CompiledMethod* OptimizingCompiler::Compile(const DexFile::CodeItem* code_item, VLOG(compiler) << "Optimizing " << method_name; { - PassInfo pass_info(kSsaBuilderPassName, &pass_info_printer); + PassInfo pass_info(SsaBuilder::kSsaBuilderPassName, &pass_info_printer); if (!graph->TryBuildingSsa()) { // We could not transform the graph to SSA, bailout. LOG(INFO) << "Skipping compilation of " << method_name << ": it contains a non natural loop"; |