diff options
author | Andreas Gampe <agampe@google.com> | 2015-02-19 18:21:24 -0800 |
---|---|---|
committer | Andreas Gampe <agampe@google.com> | 2015-02-24 15:57:15 -0800 |
commit | 7c3952f423b8213083d60596a5f0bf4237ca3f7b (patch) | |
tree | 40cbc6d30e02ab5edd8598d0f811b62f5c6045ba /compiler/optimizing/optimizing_compiler.cc | |
parent | 354d58ba776866ea7b1c71f0d0848d5aaa013ae3 (diff) | |
download | android_art-7c3952f423b8213083d60596a5f0bf4237ca3f7b.tar.gz android_art-7c3952f423b8213083d60596a5f0bf4237ca3f7b.tar.bz2 android_art-7c3952f423b8213083d60596a5f0bf4237ca3f7b.zip |
ART: Add -Wunused
Until the global CFLAGS are fixed, add Wunused. Fix declarations
in the optimizing compiler.
Change-Id: Ic4553f08e809dc54f3d82af57ac592622c98e000
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"; |