From 0b9203e7996ee1856f620f95d95d8a273c43a3df Mon Sep 17 00:00:00 2001 From: Andreas Gampe Date: Thu, 22 Jan 2015 20:39:27 -0800 Subject: ART: Some Quick cleanup Make several fields const in CompilationUnit. May benefit some Mir2Lir code that repeats tests, and in general immutability is good. Remove compiler_internals.h and refactor some other headers to reduce overly broad imports (and thus forced recompiles on changes). Change-Id: I898405907c68923581373b5981d8a85d2e5d185a --- compiler/dex/pass.h | 17 ----------------- 1 file changed, 17 deletions(-) (limited to 'compiler/dex/pass.h') diff --git a/compiler/dex/pass.h b/compiler/dex/pass.h index d3e54a0bf7..0def056f4f 100644 --- a/compiler/dex/pass.h +++ b/compiler/dex/pass.h @@ -19,14 +19,12 @@ #include -#include "compiler_ir.h" #include "base/logging.h" namespace art { // Forward declarations. class BasicBlock; -struct CompilationUnit; class Pass; // Empty Pass Data Class, can be extended by any pass extending the base Pass class. @@ -89,21 +87,6 @@ class Pass { UNREACHABLE(); } - static void BasePrintMessage(CompilationUnit* c_unit, const char* pass_name, const char* message, ...) { - // Check if we want to log something or not. - if (c_unit->print_pass) { - // Stringify the message. - va_list args; - va_start(args, message); - std::string stringified_message; - StringAppendV(&stringified_message, message, args); - va_end(args); - - // Log the message and ensure to include pass name. - LOG(INFO) << pass_name << ": " << stringified_message; - } - } - protected: /** @brief The pass name: used for searching for a pass when running a particular pass or debugging. */ const char* const pass_name_; -- cgit v1.2.3-59-g8ed1b