diff options
Diffstat (limited to 'compiler/optimizing')
-rw-r--r-- | compiler/optimizing/graph_checker.h | 4 | ||||
-rw-r--r-- | compiler/optimizing/optimization.cc | 1 | ||||
-rw-r--r-- | compiler/optimizing/register_allocator.cc | 2 |
3 files changed, 5 insertions, 2 deletions
diff --git a/compiler/optimizing/graph_checker.h b/compiler/optimizing/graph_checker.h index db3130678a..badf21d946 100644 --- a/compiler/optimizing/graph_checker.h +++ b/compiler/optimizing/graph_checker.h @@ -53,7 +53,7 @@ class GraphChecker : public HGraphVisitor { } // Print detected errors on output stream `os`. - void Dump(std::ostream& os) { + void Dump(std::ostream& os) const { for (size_t i = 0, e = errors_.Size(); i < e; ++i) { os << dump_prefix_ << errors_.Get(i) << std::endl; } @@ -68,7 +68,7 @@ class GraphChecker : public HGraphVisitor { private: // String displayed before dumped errors. - const char* dump_prefix_; + const char* const dump_prefix_; DISALLOW_COPY_AND_ASSIGN(GraphChecker); }; diff --git a/compiler/optimizing/optimization.cc b/compiler/optimizing/optimization.cc index 33dc040e76..ea98186d11 100644 --- a/compiler/optimizing/optimization.cc +++ b/compiler/optimizing/optimization.cc @@ -16,6 +16,7 @@ #include "optimization.h" +#include "base/dumpable.h" #include "graph_checker.h" namespace art { diff --git a/compiler/optimizing/register_allocator.cc b/compiler/optimizing/register_allocator.cc index fc65f97f69..f95c4a47e3 100644 --- a/compiler/optimizing/register_allocator.cc +++ b/compiler/optimizing/register_allocator.cc @@ -16,6 +16,8 @@ #include "register_allocator.h" +#include <sstream> + #include "base/bit_vector-inl.h" #include "code_generator.h" #include "ssa_liveness_analysis.h" |