diff options
| author | 2014-11-19 14:41:15 +0000 | |
|---|---|---|
| committer | 2014-11-19 14:41:16 +0000 | |
| commit | 6a0ac5ccf160e158942d49168d819fb76f887fa3 (patch) | |
| tree | d65593edb2b304167b2356342c7aee4bc366af88 /compiler/optimizing/optimization.h | |
| parent | 79cff5821816dd8aa0d5f0566346050493e82a61 (diff) | |
| parent | 5e6916cea259897baaca019c5c7a5d05746306ed (diff) | |
Merge "Use HOptimization abstraction for running optimizations."
Diffstat (limited to 'compiler/optimizing/optimization.h')
| -rw-r--r-- | compiler/optimizing/optimization.h | 13 | 
1 files changed, 2 insertions, 11 deletions
diff --git a/compiler/optimizing/optimization.h b/compiler/optimizing/optimization.h index 59683e2075..d281248f4a 100644 --- a/compiler/optimizing/optimization.h +++ b/compiler/optimizing/optimization.h @@ -29,25 +29,19 @@ class HOptimization : public ValueObject {   public:    HOptimization(HGraph* graph,                  bool is_in_ssa_form, -                const char* pass_name, -                const HGraphVisualizer& visualizer) +                const char* pass_name)        : graph_(graph),          is_in_ssa_form_(is_in_ssa_form), -        pass_name_(pass_name), -        visualizer_(visualizer) {} +        pass_name_(pass_name) {}    virtual ~HOptimization() {} -  // Execute the optimization pass. -  void Execute(); -    // Return the name of the pass.    const char* GetPassName() const { return pass_name_; }    // Peform the analysis itself.    virtual void Run() = 0; - private:    // Verify the graph; abort if it is not valid.    void Check(); @@ -59,9 +53,6 @@ class HOptimization : public ValueObject {    const bool is_in_ssa_form_;    // Optimization pass name.    const char* pass_name_; -  // A graph visualiser invoked after the execution of the optimization -  // pass if enabled. -  const HGraphVisualizer& visualizer_;    DISALLOW_COPY_AND_ASSIGN(HOptimization);  };  |